Skip to content

Instantly share code, notes, and snippets.

@rolfbjarne

rolfbjarne/a.m Secret

Last active November 24, 2015 08:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rolfbjarne/d5cc9208c1df8e5d2841 to your computer and use it in GitHub Desktop.
Save rolfbjarne/d5cc9208c1df8e5d2841 to your computer and use it in GitHub Desktop.
@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
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