2016年5月5日

iOS开发动画(Animation)图片360度不停旋转

摘要: 1 { 2 CGFloat angle; 3 } 4 5 - (void)viewDidLoad { 6 [super viewDidLoad]; 7 angle = 0; 8 [self startAnimation]; 9 } 10 11 //方法1 12 -(void) startAnimation 13 { 14 [U... 阅读全文

posted @ 2016-05-05 17:20 codemaker313 阅读(7027) 评论(0) 推荐(0)

2016年4月1日

ios 中请求主线程刷新UI

摘要: 1 if ([NSThread isMainThread]) 2 { 3 [self.downloadMapBtn setImage:[UIImage imageNamed:@"download_map.png"] forState:UIControlStateNormal]; 4 [self.downloadMapBtn setNeedsDisplay]... 阅读全文

posted @ 2016-04-01 11:43 codemaker313 阅读(2429) 评论(0) 推荐(0)

2016年2月15日

IOS开发证书变成“此证书的签发者无效”解决方法

摘要: IOS开发证书全部变成无效,如下图 打包提示错误 解决方法: 1. 下载https://developer.apple.com/certificationauthority/AppleWWDRCA.cer的证书,然后双击安装。 2. 在导航栏那边,显示-显示已过期的证书 3. 点击 “登录”,并且选 阅读全文

posted @ 2016-02-15 13:34 codemaker313 阅读(131) 评论(0) 推荐(0)

2016年1月20日

ios 从堆栈中杀死 移除 指定的viewcontroller

摘要: 1 - (void)removeVC:(UIViewController *)urViewControllerClass 2 { 3 NSArray* tempVCA = [self.navigationController viewControllers]; 4 for(UIVi... 阅读全文

posted @ 2016-01-20 16:49 codemaker313 阅读(1636) 评论(0) 推荐(0)

2016年1月18日

设置列表(uitableview)顶端间隙

摘要: self.table.tableHeaderView = [[UIView alloc] initWithFrame:CGRectMake(0.0f, 0.0f, self.table.bounds.size.width, 8.0f)]; 阅读全文

posted @ 2016-01-18 16:33 codemaker313 阅读(311) 评论(0) 推荐(0)

2016年1月14日

iOS UITextField 数字输入限制 只能输入数字和小数点,只能有两位小数

摘要: @interface ViewController (){ BOOL isHaveDian;}@end 1 - (BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacem... 阅读全文

posted @ 2016-01-14 17:24 codemaker313 阅读(2155) 评论(0) 推荐(0)

2016年1月12日

ios获取设备信息总结

摘要: 1、获取设备的信息1 UIDevice *device = [[UIDevice alloc] int]; 2 NSString *name = device.name; //获取设备所有者的名称 3 NSString *model = device.name... 阅读全文

posted @ 2016-01-12 14:31 codemaker313 阅读(282) 评论(0) 推荐(0)

2016年1月11日

UIWebView 打开文件的时候适应屏幕设置

摘要: UIWebView 打开文件的时候适应屏幕设置当设置 webView.scalesPageToFit = YES,那么打开的无论是网页还是txt,doc文档,都是适应了屏幕显示的,可以通过触摸拉伸放大;如果设置该属性为NO的时候,则页面是经过放大了的,对于doc,xls文档来说,显示的字体比较大,无... 阅读全文

posted @ 2016-01-11 11:42 codemaker313 阅读(210) 评论(0) 推荐(0)

2016年1月5日

cocoapods 安装报错 ERROR: While executing gem ... (Errno::EPERM) Operation not permitted - /usr/bin/xcodeproj

摘要: cocoapods 安装报错 ERROR: While executing gem ... (Errno::EPERM) Operation not permitted - /usr/bin/xcodeproj执行下面语句安装即可:sudo gem install -n /usr/local/bin... 阅读全文

posted @ 2016-01-05 11:01 codemaker313 阅读(658) 评论(0) 推荐(0)

2015年12月25日

ios UIAlertController 的用法

摘要: UIAlertController *alert = [UIAlertController alertControllerWithTitle:@"提示" message:@"您确定要删除该商品吗?" preferredStyle:UIAlertControllerStyleAlert]; UIAlertAction *cancelAction = [UIAlertAction actionW... 阅读全文

posted @ 2015-12-25 15:44 codemaker313 阅读(184) 评论(0) 推荐(0)

导航