iOS 开发中总结

来源:互联网 发布:百度软件助手 skype 编辑:程序博客网 时间:2024/06/03 23:39

1.苹果开发者账号:

    个人账号:99美元仅供个人开发使用。

     公司账号:99美元,可以自定义下属的开发者子账号,只是在提交发布的操作是由主账号来完成的。

     企业账号: 299 供企业内部账号使用,外面的用户不能使用itunes 访问到。


2.图层重叠

   


3.




4.程序link 报错一般先检查是否有文件重复。




5.附加在单元格后面的样式

  

//返回cell后端样式

    cell.accessoryType     =UITableViewCellAccessoryDisclosureIndicator;

    

    cell.selectionStyle=UITableViewCellSelectionStyleNone;



6. 在申请appID时密码首字母大写



7.在使用masonry 进行布局的时候需要先将空间加到view 上在进行布局否则会蹦




8.将tableView设置为group样式的时候回有头间距如果需啊哟消除的话




9.svn 


cd

svn update svn commit -m ""

svn add


git clone url  local



10:

po 例如数组:打印出数组的每个元素

p 打印数组地址,以及包含多少元素

c 跳过端点继续执行

http://www.cocoachina.com/ios/20160301/15371.html

点击打开链接



 pressTime = [NSDatedate];

        _timer = [NSTimerscheduledTimerWithTimeInterval:1target:selfselector:@selector(onTimer)userInfo:nilrepeats:YES];

        [_timerfire];

//定时器

- (void)onTimer

{

    NSDate *now = [NSDatedate];

    NSTimeInterval timeInterval = [nowtimeIntervalSinceDate:pressTime];

    if (timeInterval >= 60) {

        

        self.getCodeButton.enabled =YES;

        [_timerinvalidate];

        

    } else {

        

        self.getCodeButton.enabled =NO;

        

        [self.getCodeButtonsetTitle:[NSStringstringWithFormat:@"%d秒重新获取", (int)(60-timeInterval)]forState:UIControlStateDisabled];

    }

}


出现按钮跟着闪动的bug :




如果使用xib 创建的button 设置格式为custom  ,代码设置style;




11.iOS对png 格式的支持有更好的支持,在使用[uiimage imageNamed:@"123.jpg"]。


12. self.edgesForExtendedLayout=UIRectEdgeNone;导致上移

_tableView.contentInset=UIEdgeInsetsMake(-20, 0, 0, 0);

代替


13.设置特定字符串颜色不一致


14.使用jsonmodel的时候关键字一定要一样不然映射不到。







0 0
原创粉丝点击