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
UIImage *image = [UIImage imageNamed:@"back_btn"]; | |
UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom]; | |
[button setImage:image forState:UIControlStateNormal]; | |
CGRect buttonFrame; | |
CGFloat padding = 0.0; | |
if (NSFoundationVersionNumber > NSFoundationVersionNumber_iOS_6_1) { | |
padding = 10.0; | |
} | |
buttonFrame = CGRectMake(padding, 0.0, image.size.width + padding * 2, image.size.height); |
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
#import "BadViewController.h" | |
#define NAVIGATIONBAR_HEIGHT 44.0 | |
#define TABBAR_HEIGHT 49.0 | |
#define WINDOW_WIDTH 320.0 | |
#define WINDOW_HEIGHT_4INCH 568.0 | |
@interface BadViewController () | |
@property (nonatomic) NSMutableArray *veryLargeImageLists; | |
@end |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>kRequireSpaceAfterColon</key> | |
<false/> | |
<key>kRequireOpenBraceOnMethodSignatureLine</key> | |
<true/> | |
<key>kRequireOpenBraceOnConditionalStatementLine</key> | |
<true/> |