↓
UITableViewCellを継承したカスタムセル作るぞー
↓

Next(ぽち)
↓
ん…?なんか違うような…

Next(ぽち)
↓
えっ!!
正しくはこちら

↓

-->
UIFont *barButtonTitleFont = [UIFont fontWithName:@"mplus-2p-light" size:13];
UIColor *barButtonTitleColor = [UIColor whiteColor];
[[UIBarButtonItem appearance] setTitleTextAttributes:@{UITextAttributeFont:barButtonTitleFont, UITextAttributeTextColor:barButtonTitleColor} forState:UIControlStateNormal];
を記述。これで、BackButtonのフォントが変わる UILabel* label = [[UILabel alloc]initWithFrame:CGRectMake(0, 0, 200, 44)];
label.backgroundColor = [UIColor clearColor];
label.font = [UIFont fontWithName:@"mplus-2p-light" size:22.0f];
label.textColor = [UIColor flatWhiteColor];
label.text = @"タイトル";
label.textAlignment = NSTextAlignmentCenter;
self.navigationItem.titleView = label;
を記述。これで、タイトルのフォントが変わる。

[NSThread sleepForTimeInterval:1.0]; [UIApplication sharedApplication].statusBarHidden = NO;を記述する。
@interface sampleClass:NSObject
{
NSString *_string; //インスタンス変数の定義
double _number; //インスタンス変数の定義
}
@property (nonatomic) NSString* string; //プロパティを記述すると、getterとsetterが自動で生成される
@end
sampleClass.m
@implementation sampleClass
@synthesize string = _string; //インスタンス変数とプロパティを明示的に紐付ける
//プロパティを記述していない場合、自分でgetterとsetterを作る
- (double)number{
return _number;
}
- (void)setNumber:(double)number{
_number = number;
}
@end
setter/getterを自分で作る場合の利点は、setter/getter内に好きなことを記述できる- (void)prepareShowRightPanel;を追記
- (void)_showRightPanel:(BOOL)animated bounce:(BOOL)shouldBounce {
self.state = JASidePanelRightVisible;
[self _loadRightPanel];
[self _adjustCenterFrame];
if (animated) {
[self _animateCenterPanel:shouldBounce completion:nil];
} else {
self.centerPanelContainer.frame = _centerPanelRestingFrame;
[self styleContainer:self.centerPanelContainer animate:NO duration:0.0f];
if (self.style == JASidePanelMultipleActive || self.pushesSidePanels) {
[self _layoutSideContainers:NO duration:0.0f];
}
}
if (self.style == JASidePanelSingleActive) {
self.tapView = [[UIView alloc] init];
}
[self prepareShowRightPanel];//これを追加
[self _toggleScrollsToTopForCenter:NO left:NO right:YES];
}
次に、JASidePanelControllerのサブクラスに
- (void)prepareShowRightPanel {
NSLog(@"show right panel");
}
を記述