- 浏览: 17901 次
- 性别:
- 来自: 杭州
文章分类
最新评论
1.NSBundle
1> 一个NSBundle代表一个文件夹,利用NSBundle能访问对应的文件夹
2> 利用mainBundle就可以访问软件资源包中的任何资源
3> 模拟器应用程序的安装路径
/Users/aplle/资源库/Application Support/iPhone Simulator/7.1/Applications
2.UIImageView和UIButton
1> 使用场合
* UIImageView: 如果仅仅是显示图片,不需要监听图片的点击
* UIButton: 既要显示图片,又要监听图片的点击
2> 相同:能显示图片
3> 不同点
* UIButton能处理点击事件, UIImageView不能处理点击事件
* UIButton既能显示图片, 又能显示文字
* UIButton能同时显示两张图片
* UIButton继承自UIControl, 因此默认就能处理事件
* UIImageView继承自UIView, 因此默认就不能处理事件
3.Xcode文档安装路径
/Applications/Xcode.app/Contents/Developer/Documentation/DocSets
4.Xcode模拟器安装路径
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs
5.UIImage对象执行定时器
[self.tom performSelector:@selector(setAnimationImages:) withObject:nil afterDelay:delay];
1> 一个NSBundle代表一个文件夹,利用NSBundle能访问对应的文件夹
2> 利用mainBundle就可以访问软件资源包中的任何资源
3> 模拟器应用程序的安装路径
/Users/aplle/资源库/Application Support/iPhone Simulator/7.1/Applications
2.UIImageView和UIButton
1> 使用场合
* UIImageView: 如果仅仅是显示图片,不需要监听图片的点击
* UIButton: 既要显示图片,又要监听图片的点击
2> 相同:能显示图片
3> 不同点
* UIButton能处理点击事件, UIImageView不能处理点击事件
* UIButton既能显示图片, 又能显示文字
* UIButton能同时显示两张图片
* UIButton继承自UIControl, 因此默认就能处理事件
* UIImageView继承自UIView, 因此默认就不能处理事件
3.Xcode文档安装路径
/Applications/Xcode.app/Contents/Developer/Documentation/DocSets
4.Xcode模拟器安装路径
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs
5.UIImage对象执行定时器
[self.tom performSelector:@selector(setAnimationImages:) withObject:nil afterDelay:delay];
发表评论
-
去除按钮的高亮显示
2014-11-20 21:59 346重写改方法 - (void)setHighlighted:( ... -
自动填充 superView的左边和下面
2014-11-20 21:43 295badgeButton.autoresizingMask = ... -
KVO
2014-11-19 23:37 280KVO 有添加监听 在销毁时就需要移除 监听 -
IOS截屏
2014-11-12 22:54 261+ (instancetype)captureWithView ... -
UIImage裁剪分类方法
2014-11-12 22:44 585+ (instancetype)circleImageWith ... -
UIImage创建水印的分类方法
2014-11-12 22:01 340+ (instancetype)waterImageWithB ... -
OC中需要release 的对象
2014-11-12 21:16 266oc 中凡是 通过 create、copy、retain 的对 ... -
modal
2014-11-08 11:56 266除了push之外,还有另外一种控制器的切换方式,那就是Moda ... -
数据存储
2014-11-24 11:38 320数据存储 1、plist属性列表 1> 适用对象:仅仅是 ... -
tableView的刷新
2014-11-24 11:39 5031.tableView的刷新 1> 数据刷新的总体步骤 ... -
UISwitch的使用和监听TextView文字的改变
2014-11-07 23:20 3871.UISwitch * UISwitch继承自UIContr ... -
应用沙盒结构分析
2014-11-07 23:19 268应用程序包:(上图中的Layer)包含了所有的资源文件和可执行 ... -
property的属性设置
2014-11-07 23:18 348copy : NSString\NSMutableString ... -
AppDelegate中方法的作用
2014-11-07 23:16 596/** * app加载完毕的时 ... -
NSSearchPathForDirectoriesInDomains和NSHomeDirectory差异 转
2014-11-07 21:32 671iPhone会为每一个应用程序生成一个私有目录,这个目录位于: ... -
控制器的title等价于navigationItem.title
2014-11-04 23:29 342// contactVc.title 等价于 contactV ... -
创建控制器的几种方式
2014-11-03 16:51 370控制器常见的创建方式有以下几种 通过storyboard创建 ... -
pch文件作用 和 NSLog函数的处理
2014-11-02 21:04 608/************__OBJC__BEGIN***** ... -
通知和代理的区别
2014-10-28 22:08 424共同点 利用通知和代理都能完成对象之间的通信 (比如A对象告诉 ... -
使用xib封装一个view的步骤
2014-10-28 22:06 4591、新建一个xib文件描述一个view的内部结构(假设叫做MJ ...
相关推荐
Day 2 :: Asset Catalog Day 3 :: Background Fetch Day 4 :: AVSpeechSynthesizer Day 5 :: UIDynamics with Collection Views Day 6 :: Tint Color Day 7 :: Taking Snapshots of UIViews Day 8 :: Reading list ...
iOS7: Day by Day takes a stroll through this new functionality from a developer perspective. Each chapter takes a look at a different feature, with code and a sample app to aid demonstration. The ...
ios8_dayByday,每天一点点,进步一大截
本资源包含了31天iOS入门源码,是学习iOS的最佳入门资料。 Day 01: Minutes to Midnight Day 02: Bonfire Day 03: openURL Day 04: What is my IP? Day 05: Count Me In Day 06: Reaction Time Day 07: Speed ...
iOS9-day-by-day, 从iOS9系列开始选择日的项目 iOS9-day-by-day苹果在发布到 public的开发者世界中,在9月发布到之前,苹果将它的交付给开发者。 iOS为用户带来了一些重大的改变,比如iPad的多任务和搜索和Siri增强...
want to build some day. The problems that are tackled in this book are real and practical. This book doesn't cover every single framework that you can use in your apps; there are simply way too many. ...
第一次上传代码,请大神多多指教。另外项目效果有些粗糙,还在进一步细化。欢迎大神交流、提建议。
In this book, you'll find examples of applications that you might actually want to build some day. The problems that are tackled in this book are real and practical. This book doesn't cover every ...
“Day One 可能是我的 Mac 和 iOS 设备上最为强大的一款应用软件...”—Federico Viticci, MacStories “简单易用、随手可得,这是微记录的全新方式...”—The Verge Day One 提供: ## 优秀书写体验 ##
Day1_AM_IOS XR software overview_V1.0
Interest in developing apps for Apple’s iOS platform continues to rise, and more great apps appear in Apple’s App Store every day. As people like you join the app-creation party, they usually ...
iOS8: Day-by-Day 回顾了其中最重要的部分。 忙碌的开发人员没有时间浏览 WWDC 视频和 Apple 文档。 相反,他们希望获得新可能性的高级摘要,以及一些工作示例代码。 这正是 iOS8: Day-by-Day 所提供的。 它最初是...
With this cookbook, you'll learn more than 170 proven solutions for tackling the latest features in iOS 11 and watchOS 4, including new ways to use Swift and Xcode to make your day-to-day app ...
iOS9日复一日 这是一个Objective-C的版本演示代码从 苹果于2015年6月在WWDC上向...iOS9 Day-by-Day是一个博客系列,深入探讨了iOS 9中开发人员可用的所有新功能。您可以在阅读有关它的更多信息并找到当前发布的文章的
Chapter 2: Getting Started with iOS 8 Swift Programming Chapter 3: Variables and Constants in Swift Chapter 4: Type Annotations Chapter 5: Tuples in Swift Chapter 6: Enumerations in Swift Chapter 7: ...
Mobile games are social and becoming more integrated into our social lives every day. Game Center and Game Kit are Apple’s answers to integrating social aspects into iOS games, making it easier than ...
He has been a Swift developer since day one and runs a blog on iOS development at http://swiftandpainless.com/. Table of Contents Your First Unit Tests Planning and Structuring Your Test-Driven iOS...
Admob iOS SDK 7.0.0 版,改进对iOS8的支持。...•Deprecated GADRequest's setBirthdayWithMonth:day:year:. •Removed GADRequest's addKeyword: method. •Removed DFPSwipeableBannerView class.