上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 22 下一页
摘要: UIAlertView随着苹果上次iOS 5的发布,对话框视图样式出现在了我们面前,直到现在它都没有发生过很大的变化。下面的代码片段展示了如何初始化和显示一个带有“取消”和“好的”按钮的对话框视图。Objective-C版本:UIAlertView *alertview = [[UIAlertVie... 阅读全文
posted @ 2016-01-12 22:13 starainDou 阅读(211) 评论(0) 推荐(0) 编辑
摘要: One of the things I like most about Apple’s iOS SDK is the consistent and easy-to-use API they provide. Across all their different frameworks there’s ... 阅读全文
posted @ 2016-01-12 17:28 starainDou 阅读(188) 评论(0) 推荐(0) 编辑
摘要: 第一种:UIImage *searchimage=[UIImage imageNamed:@"search.png"]; UIBarButtonItem *barbtn=[[[UIBarButtonItem alloc] initWithImage:nil style:UIBarButtonIte... 阅读全文
posted @ 2016-01-12 17:17 starainDou 阅读(247) 评论(0) 推荐(0) 编辑
摘要: OC是运行时语言,只有在程序运行时,才会去确定对象的类型,并调用类与对象相应的方法。利用runtime机制让我们可以在程序运行时动态修改类、对象中的所有属性、方法,就算是私有方法以及私有属性都是可以动态修改的。本文旨在对runtime的部分特性小试牛刀,更多更全的方法可以参考系统API文件,demo... 阅读全文
posted @ 2016-01-12 17:00 starainDou 阅读(148) 评论(0) 推荐(0) 编辑
摘要: IPhone下每个app可用的内存是被限制的,如果一个app使用的内存超过20M,则系统会向该app发送Memory Warning消息。收到此消息后,app必须正确处理,否则可能出错或者出现内存泄露。app收到Memory Warning后会调用:UIApplication::didReceive... 阅读全文
posted @ 2016-01-12 16:17 starainDou 阅读(1949) 评论(1) 推荐(0) 编辑
摘要: [摘要:1、完整退出Xcode 和 摹拟器 2、末端中输进以下两居指令 $ sudo killall -9 com.apple.CoreSimulator.CoreSimulatorService$ rm -rf ~/Library/Developer/CoreSimulator/Devices 3... 阅读全文
posted @ 2016-01-11 21:49 starainDou 阅读(139) 评论(0) 推荐(0) 编辑
摘要: 一、什么是CocoaPodsCocoaPods是iOS项目的依赖管理工具,该项目源码在Github上管理。开发iOS项目不可避免地要使用第三方开源库,CocoaPods的出现使得我们可以节省设置和第三方开源库的时间。在使用CocoaPods之前,开发项目需要用到第三方开源库的时候,我们需要1.把开源... 阅读全文
posted @ 2016-01-11 11:28 starainDou 阅读(229) 评论(1) 推荐(0) 编辑
摘要: 大概步骤如下:Open Xcode 6Open PreferencesClick theLocationstabChange theCommand Line Toolsversion toXcode 6.0Uninstallcocoapodsa.$ sudo gem uninstall cocoap... 阅读全文
posted @ 2016-01-11 11:27 starainDou 阅读(136) 评论(0) 推荐(0) 编辑
摘要: [※]@property中有哪些属性关键字?1.原子性nonatomic/automic在默认情况下,由编译器合成的方法会通过锁定机制确保其原子性(automicity),如果具备nonatomic特质,则不使用同步锁.2.读/写权限readwrite/readonly3.内存管理语义 assign... 阅读全文
posted @ 2016-01-10 23:19 starainDou 阅读(445) 评论(0) 推荐(0) 编辑
摘要: 声明 以下所有 API 均由 知乎(Zhihu.Inc) 提供,本人(Izzy Leung)采取非正常手段获取。获取与共享之行为或有侵犯知乎权益的嫌疑。若被告知需停止共享与使用,本人会及时删除此页面与整个项目。 请您暸解相关情况,并遵守知乎协议。 API 说明 知乎日报的消息以 JSON 格式输出 阅读全文
posted @ 2016-01-10 14:26 starainDou 阅读(3193) 评论(0) 推荐(0) 编辑
上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 22 下一页