`

iOS day2

    博客分类:
  • ios
ios 
阅读更多
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];
分享到:
评论

相关推荐

    iOS7 Day-by-Day

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

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

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

    ios-仿NextDay日历效果.zip

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

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

    Day one(日志/日记)

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

    Day1_AM_IOS XR software overview_V1.0.pptx

    Day1_AM_IOS XR software overview_V1.0

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

    iOS8-day-by-day-book:iOS8配套的书

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

    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中开发人员可用的所有新功能。您可以在阅读有关它的更多信息并找到当前发布的文章的

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

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

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

    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.

Global site tag (gtag.js) - Google Analytics