`

ios day1

    博客分类:
  • ios
 
阅读更多
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:^{
/**需要执行的代码**/
}]
分享到:
评论

相关推荐

    iOS7 Day-by-Day

    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 ...

    iOS 7 Day by Day

    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

    ios8_dayByday,每天一点点,进步一大截

    31天iOS入门源码

    本资源包含了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系列开始选择日的项目.zip

    iOS9-day-by-day, 从iOS9系列开始选择日的项目 iOS9-day-by-day苹果在发布到 public的开发者世界中,在9月发布到之前,苹果将它的交付给开发者。 iOS为用户带来了一些重大的改变,比如iPad的多任务和搜索和Siri增强...

    Day1_AM_IOS XR software overview_V1.0.pptx

    Day1_AM_IOS XR software overview_V1.0

    Day one(日志/日记)

    “Day One 可能是我的 Mac 和 iOS 设备上最为强大的一款应用软件...”—Federico Viticci, MacStories “简单易用、随手可得,这是微记录的全新方式...”—The Verge Day One 提供: ## 优秀书写体验 ##

    ios-仿NextDay日历效果.zip

    第一次上传代码,请大神多多指教。另外项目效果有些粗糙,还在进一步细化。欢迎大神交流、提建议。

    Mastering iOS 11 Programming, 2nd Edition-Packt Publishing(2017).pdf )

    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-book:iOS8配套的书

    iOS8: Day-by-Day 回顾了其中最重要的部分。 忙碌的开发人员没有时间浏览 WWDC 视频和 Apple 文档。 相反,他们希望获得新可能性的高级摘要,以及一些工作示例代码。 这正是 iOS8: Day-by-Day 所提供的。 它最初是...

    Mastering iOS 11 Programming, 2nd Edition-Packt Publishing(2017).pdf

    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 ...

    iOS 11 Swift Programming Cookbook

    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-day-by-day-oc:来自shinobicontrols的iOS9每天的Objective-C版本演示代码

    iOS9日复一日 这是一个Objective-C的版本演示代码从 苹果于2015年6月在WWDC上向...iOS9 Day-by-Day是一个博客系列,深入探讨了iOS 9中开发人员可用的所有新功能。您可以在阅读有关它的更多信息并找到当前发布的文章的

    Beginning iOS Social Games

    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 ...

    Pro Core Data for iOS, 2nd Edition

    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 ...

    Test-Driven iOS Development with Swift

    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...

    Google Admob iOS SDK - 2015-02-03

    Admob iOS SDK 7.0.0 版,改进对iOS8的支持。...•Deprecated GADRequest's setBirthdayWithMonth:day:year:. •Removed GADRequest's addKeyword: method. •Removed DFPSwipeableBannerView class.

    iOS.8.Programming.with.Swift.2nd.Edition.B00WO7FVDS

    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...

Global site tag (gtag.js) - Google Analytics