-
-
Save rolfbjarne/d5cc9208c1df8e5d2841 to your computer and use it in GitHub Desktop.
This file contains 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
@interface AlterationHeaderFooterView : UITableViewHeaderFooterView | |
-(void) layoutSubviews; | |
-(instancetype) init; | |
@end | |
@implementation AlterationHeaderFooterView | |
-(instancetype) init | |
{ | |
self = [super init]; | |
NSLog (@"init"); | |
return self; | |
} | |
-(void) layoutSubviews | |
{ | |
NSLog (@"layoutSubviews"); | |
} | |
@end | |
@implementation AppDelegate | |
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { | |
// Override point for customization after application launch. | |
NSLog (@"allocating"); | |
id layer = [[AlterationHeaderFooterView alloc] init]; | |
NSLog (@"allocated"); | |
[layer release]; | |
return YES; | |
} | |
@end |
This file contains 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
Output with iOS 9.1: | |
2015-11-24 09:15:41.044 apicheck[19834:10696558] allocating | |
2015-11-24 09:15:41.045 apicheck[19834:10696558] layoutSubviews | |
2015-11-24 09:15:41.045 apicheck[19834:10696558] init | |
2015-11-24 09:15:41.045 apicheck[19834:10696558] allocated | |
Output with iOS 8.1: | |
2015-11-24 09:16:56.608 apicheck[19916:10707702] allocating | |
2015-11-24 09:16:56.609 apicheck[19916:10707702] init | |
2015-11-24 09:16:56.609 apicheck[19916:10707702] allocated |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment