- 浏览: 17907 次
- 性别:
- 来自: 杭州
文章分类
最新评论
1.IBAction:
1> 能保证方法可以连线
2> 相当于void
2.IBOutlet:
1> 能保证属性可以连线
3.常见错误
setValue:forUndefinedKey:]: this class is not key value coding
错误原因是:连线出问题了
4.Xcode5开始的一些建议
把用于连线的一些方法和属性声明在.m文件的类扩展中
5.frame\center\bounds
1> frame:能修改位置和尺寸
2> center:能修改位置
3> bounds:能修改尺寸(x\y一般都是0)
4> transform:位置\尺寸\旋转角度
6.简易动画实现的两种方式
(1) 头尾式
[UIView beginAnimations:nil context:nil];
/**需要执行动画的代码**/
[UIView commitAnimations];
(2)Block式
[UIVIew animateWithDuration:0.5 animations:^{
/**需要执行的代码**/
}]
1> 能保证方法可以连线
2> 相当于void
2.IBOutlet:
1> 能保证属性可以连线
3.常见错误
setValue:forUndefinedKey:]: this class is not key value coding
错误原因是:连线出问题了
4.Xcode5开始的一些建议
把用于连线的一些方法和属性声明在.m文件的类扩展中
5.frame\center\bounds
1> frame:能修改位置和尺寸
2> center:能修改位置
3> bounds:能修改尺寸(x\y一般都是0)
4> transform:位置\尺寸\旋转角度
6.简易动画实现的两种方式
(1) 头尾式
[UIView beginAnimations:nil context:nil];
/**需要执行动画的代码**/
[UIView commitAnimations];
(2)Block式
[UIVIew animateWithDuration:0.5 animations:^{
/**需要执行的代码**/
}]
发表评论
-
去除按钮的高亮显示
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 341+ (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 1 :: NSURLSession 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 ...
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增强...
Day1_AM_IOS XR software overview_V1.0
“Day One 可能是我的 Mac 和 iOS 设备上最为强大的一款应用软件...”—Federico Viticci, MacStories “简单易用、随手可得,这是微记录的全新方式...”—The Verge Day One 提供: ## 优秀书写体验 ##
第一次上传代码,请大神多多指教。另外项目效果有些粗糙,还在进一步细化。欢迎大神交流、提建议。
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. ...
iOS8: Day-by-Day 回顾了其中最重要的部分。 忙碌的开发人员没有时间浏览 WWDC 视频和 Apple 文档。 相反,他们希望获得新可能性的高级摘要,以及一些工作示例代码。 这正是 iOS8: Day-by-Day 所提供的。 它最初是...
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 ...
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中开发人员可用的所有新功能。您可以在阅读有关它的更多信息并找到当前发布的文章的
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 ...
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 ...
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.
Chapter 1: Definition 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...