摘要:
1.新建pch类文件2.在工程配置中,Build Setting 下搜索"pre"寻找Apple LLVM6.1 - Language下的 Preflx Header3.点开Preflx Header 把左边pch类拖拽进去4.把/"工程名"/....前边的内容全部换为$(SRCROOT)(具体替换...
阅读全文
posted @ 2015-10-27 09:01
拿起放不下
阅读(173)
推荐(0)
摘要:
把浮点型的值加上0.5, 然后转换为整型,就可以做到四舍五入
阅读全文
posted @ 2015-10-27 08:36
拿起放不下
阅读(360)
推荐(0)
摘要:
起始偏移量设置为一个宽度 [NSTimer scheduledTimerWithTimeInterval:2 target:self selector:@selector(refreshPic) userInfo:nil repeats:YES];//定时器实现- (void)refreshP...
阅读全文
posted @ 2015-10-26 20:47
拿起放不下
阅读(221)
推荐(0)
摘要:
return cell;上边加判断if(self.dataArray.count<1){return cell;}
阅读全文
posted @ 2015-10-22 15:52
拿起放不下
阅读(286)
推荐(0)
摘要:
//方法1.关闭自动布局 self.automaticallyAdjustsScrollViewInsets = NO;//方法2.改变相对于scrollview的位置//contentInset可以为继承于ScrollView的控件添或减少额外的滑动区域 /* 4个参数分别为相比原有坐标所需...
阅读全文
posted @ 2015-10-22 15:47
拿起放不下
阅读(565)
推荐(0)
摘要:
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{ [tableView deselectRowAtIndexPath:indexPath animated:YES...
阅读全文
posted @ 2015-10-22 11:28
拿起放不下
阅读(257)
推荐(0)
摘要:
//如何从应用直接跳转AppStore [[UIApplication sharedApplication]openURL:[NSURL URLWithString:@"应用程序的下载链接"]];- (void)buttonClick:(UIButton*)button{ if (button....
阅读全文
posted @ 2015-10-21 15:29
拿起放不下
阅读(205)
推荐(0)
摘要:
//星级 [self.startView setStarLevelFormStr:model.starCurrent];- (void)createUI{ //在当前图片上放置五星级图片 UIImageView * upImageView = [[UIImageView alloc] init...
阅读全文
posted @ 2015-10-21 09:07
拿起放不下
阅读(201)
推荐(0)
摘要:
InfoViewController * info = [[InfoViewController alloc] init];HeroViewController * hero = [[HeroViewController alloc] init];MeViewController * me = [[...
阅读全文
posted @ 2015-10-21 08:44
拿起放不下
阅读(412)
推荐(0)
摘要:
//TabBar样式[navi.tabBarItem setTitleTextAttributes:@{NSFontAttributeName:[UIFont boldSystemFontOfSize:13],NSForegroundColorAttributeName:[UIColor color...
阅读全文
posted @ 2015-10-21 08:35
拿起放不下
阅读(496)
推荐(0)