UI基础02
2016-01-06 20:02
369 查看
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
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
相关文章推荐
- UITableView加载数据
- UI基础01
- SBT-Simple Build Tool入门
- UE4 Slate概述
- UE4 在游戏中使用Slate
- UE4 Slate Architecture
- UE4 Slate, Hello
- 克隆contos 出现 Error:No suitable device found: no device found for connection "System eth0&
- CoreBluetooth蓝牙4.0的封装
- iOS--错误集锦--'...' does not contain bit code. You must rebuild it with bit code enabled ...
- 1567: [JSOI2008]Blue Mary的战役地图 二分+hash
- UIVisualEffectView
- 2079: [Poi2010]Guilds 思路题
- ajax post request 获取不到数据
- CAGradientLayer,CAShapeLayer及UIBezierPath实现环形彩色进度条
- Ueditor处理微信图片
- UIImage旋转
- 开发者日记(2016年01月06日17:39:15):关于android bluetooth 学习:
- Burpsuite插件开发之RSA加解密
- Druid数据库连接池使用