Refactoring
Upcoming SlideShare
Loading in...5
×
 

Refactoring

on

  • 558 views

我所知道的 Refactoring 小技巧 :)

我所知道的 Refactoring 小技巧 :)

Statistics

Views

Total Views
558
Views on SlideShare
551
Embed Views
7

Actions

Likes
3
Downloads
2
Comments
0

2 Embeds 7

https://www.linkedin.com 5
http://www.linkedin.com 2

Accessibility

Upload Details

Uploaded via as Apple Keynote

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n

Refactoring Refactoring Presentation Transcript

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