Refactoring

723 views
678 views

Published on

我所知道的 Refactoring 小技巧 :)

Published in: Technology, Health & Medicine
0 Comments
3 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
723
On SlideShare
0
From Embeds
0
Number of Embeds
27
Actions
Shares
0
Downloads
7
Comments
0
Likes
3
Embeds 0
No embeds

No notes for slide
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • Refactoring

    1. 1. Refactoring zonble zonble@gmail.com
    2. 2. zonble• Refactor• 1.0 2.0• 1.0 2.0
    3. 3. Xcode• Rename• Move Up• Move Down•… Refactoring
    4. 4. IDE• method• method• method class
    5. 5. • Refactor menu Rename • performSelector: • KVC getter/ setter • Xcode @”” @selector() method
    6. 6. • method setA: B• setA:B: setA:• setA: setA:
    7. 7. -(void)setA:(id)A B:(id)B{}- (void)setA:(id)A{ [self setA:A B:nil];}
    8. 8. • method•…•…
    9. 9. • model
    10. 10. • method• Compiler
    11. 11. • method DEPRECATED_ATTRIBUTE compile• • - (void)setA:(id)A DEPRECATED_ATTRIBUTE;
    12. 12. • method DEPRECATED_ATTRIBUTE• /method• compiler method• compile Interface
    13. 13. Das ist alles.

    ×