随笔分类 -  iOS

iOS开发总结
摘要:Topics 官方文档资料分类 Audio & Video 音视频 Cocoa Touch Layer 可触摸层 Core OS Layer 核心操作系统层 Core Services Layer 核心服务层 Data Management 数据管理 General Graphics & Anima 阅读全文
posted @ 2016-03-24 21:20 zhiupping8 阅读(335) 评论(0) 推荐(0)
摘要:https://github.com/garfieldc/NYT-Objective-C-Style-Guide-CN https://github.com/raywenderlich/objective-c-style-guide https://github.com/raywenderlich/ 阅读全文
posted @ 2016-03-17 20:37 zhiupping8 阅读(158) 评论(0) 推荐(0)
摘要:1、iOS开发环境 1.1、开发环境(XCode + MAC OS X) 1.1.1、xcode 1.1.2、Mac OS X: 1.2、账号、证书、上架等 2、语言学习 2.1、Objective-C 2.2、Swift 3、iOS开发 3.1、操作系统(参考书籍《深入解析Mac OS X & i 阅读全文
posted @ 2016-03-13 20:48 zhiupping8 阅读(215) 评论(0) 推荐(0)
摘要:这时候就会影响了我们的界面。我们可以有两种的解决办法,如果你的tabbar高度是在49px而背景图没有超过这个高度的话可以使用[self.tabBar setClipsToBounds:YES];如果我们的高度是高于49的话,可以使用if ([[[UIDevice currentDevice] sy... 阅读全文
posted @ 2015-12-15 18:00 zhiupping8 阅读(206) 评论(0) 推荐(0)
摘要:在浏览器中可以通过JS代码打开QQ并弹出聊天界面,一般作为客服QQ使用。而在移动端腾讯貌似没有公布提供类似API,但是却可以使用schema模式来启动手机QQ。以下为具体代码:Android:String url="mqqwpa://im/chat?chat_type=wpa&uin=123456"... 阅读全文
posted @ 2015-11-29 22:12 zhiupping8 阅读(244) 评论(0) 推荐(0)
摘要:Grand Central Dispatch (GCD)是Apple开发的一个多核编程的解决方法dispatch queue分成以下三种:1)运行在主线程的Main queue,通过dispatch_get_main_queue获取。/*!* @function dispatch_get_main_... 阅读全文
posted @ 2015-11-23 23:30 zhiupping8 阅读(164) 评论(0) 推荐(0)
摘要:Reveal集成指南http://support.revealapp.com/kb/getting-started/reveal集成Reveal:不修改您的Xcode工程并加载Revealhttp://support.revealapp.com/kb/getting-started/revealxc... 阅读全文
posted @ 2015-11-01 20:03 zhiupping8 阅读(157) 评论(0) 推荐(0)
摘要:自定义titleViewUITextField *textField = [[UITextField alloc] initWithFrame:CGRectMake(0, 0, 150, 30)];[textField setBorderStyle:UITextBorderStyleRoundedR... 阅读全文
posted @ 2015-10-28 15:38 zhiupping8 阅读(146) 评论(0) 推荐(0)
摘要:注释1、/**/多行注释, 也可以用于多个方法、字段的标注。2、//单行注释,单个字段或方法的说明。 阅读全文
posted @ 2015-10-28 14:36 zhiupping8 阅读(112) 评论(0) 推荐(0)
摘要:类名转换成字符串NSClassFromString(@"class")字符串转换成类NSStringFromClass([self class]);实例id VC = [[NSClassFromString([self.sourceArray objectAtIndex:indexPath.row]... 阅读全文
posted @ 2015-10-27 15:51 zhiupping8 阅读(355) 评论(0) 推荐(0)
摘要:1、[tableView dequeueReusableCellWithIdentifier:reuseIdentifier]和[tableView dequeueReusableCellWithIdentifier:reuseIdentifier forIndexPath:indexPath]区别... 阅读全文
posted @ 2015-10-27 15:21 zhiupping8 阅读(97) 评论(0) 推荐(0)
摘要:代码[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"https://itunes.apple.com/cn/app/miao-miao-xi-yi/id1031061160?mt=8"]];应用的连接地址在itune... 阅读全文
posted @ 2015-10-27 12:10 zhiupping8 阅读(140) 评论(0) 推荐(0)
摘要:self.tableView.tableFooterView = [[UIView alloc]init]; 阅读全文
posted @ 2015-10-23 16:42 zhiupping8 阅读(133) 评论(0) 推荐(0)
摘要:参考:http://blog.devtang.com/blog/2014/05/25/use-cocoapod-to-manage-ios-lib-dependency/ 安装 如果你的 gem 太老,可能也会有问题,可以尝试用如下命令升级 gem: 另外,ruby 的软件源 https://rub 阅读全文
posted @ 2015-10-21 09:56 zhiupping8 阅读(271) 评论(0) 推荐(0)
摘要:http://www.cnblogs.com/fengtengfei/p/4831011.html 阅读全文
posted @ 2015-10-20 17:41 zhiupping8 阅读(168) 评论(0) 推荐(0)
摘要:CoreBluetoothhttps://developer.apple.com/library/ios/documentation/CoreBluetooth/Reference/CoreBluetooth_Framework/ 阅读全文
posted @ 2015-10-16 18:19 zhiupping8 阅读(132) 评论(0) 推荐(0)
摘要:Google后查证,iOS9引入了新特性App Transport Security (ATS)。详情:App Transport Security (ATS)新特性要求App内访问的网络必须使用HTTPS协议。解决办法在Info.plist中添加NSAppTransportSecurity类型Di... 阅读全文
posted @ 2015-10-16 12:03 zhiupping8 阅读(129) 评论(0) 推荐(0)
摘要:asd 阅读全文
posted @ 2015-10-16 10:03 zhiupping8 阅读(83) 评论(0) 推荐(0)
摘要:http://mobile.51cto.com/iphone-463665.htm 阅读全文
posted @ 2015-10-15 22:16 zhiupping8 阅读(92) 评论(0) 推荐(0)
摘要:一个加速度数据类,x、y、z三个方向上加速度数据。其中x(y、z)是以g(重力加速度)为单位。timestamp? 阅读全文
posted @ 2015-10-12 10:39 zhiupping8 阅读(186) 评论(0) 推荐(0)