This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
number % 2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[self transitionFromViewController: toViewController: duration: options: animations: completion]; | |
self.view.transform = xxx |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://placehold.it/120x100 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[UIView transitionFromView:self.view toView:listsViewController.view | |
duration:1 options:UIViewAnimationOptionTransitionFlipFromRight | |
completion:^(BOOL finished) { | |
[[UIApplication sharedApplication].delegate window].rootViewController = listsViewController; | |
}]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (void)applicationDidBecomeActive:(UIApplication *)application | |
{ | |
application.applicationIconBadgeNumber = 0; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NSObject | |
Sending Messages | |
– performSelector:withObject:afterDelay: | |
– performSelector:withObject:afterDelay:inModes: | |
– performSelectorOnMainThread:withObject:waitUntilDone: | |
– performSelectorOnMainThread:withObject:waitUntilDone:modes: | |
– performSelector:onThread:withObject:waitUntilDone: | |
– performSelector:onThread:withObject:waitUntilDone:modes: | |
– performSelectorInBackground:withObject: | |
+ cancelPreviousPerformRequestsWithTarget: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*.app | |
build/ | |
.DS_Store | |
*~ | |
.LSOverride | |
*.xcuserdatad | |
*.xcworkspace |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git rm --cached ProjectFolder.xcodeproj/project.xcworkspace/xcuserdata/myUserName.xcuserdatad/UserInterfaceState.xcuserstate | |
git commit -m "Removed file that shouldn't be tracked" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NSDate* now = [NSDate date]; | |
NSDateComponents* ageComponents = [[NSCalendar currentCalendar] | |
components:NSYearCalendarUnit | |
fromDate:self.birthday | |
toDate:now | |
options:0]; | |
NSInteger age = [ageComponents year]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@synchronized(self) { | |
// Code here will be execute by only one thread. | |
} |