1:字符串的拼接
NSTring *path = [NString stringWithFormat:@“%@%@%@@“,需要打印的东西];
2: 消除状态栏对View 中的影响
self.edgesForExtendedLayout = UIRectEdgeNone;
3: 隐藏状态栏
- (BOOL) prefersStarsBarHidder
{
return YES;
}
一句代码,导航栏上的左右按钮(添加标题,添加突发事件)
self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc]initWithTitle:nil style:UIBarButtonItemStylePlain target:self action:@selector(selectRightAction:)];
时间: 2024-10-26 11:32:54