Swift笔记
GongKiro
这个作者很懒,什么都没留下…
展开
-
Swift爬行篇-- UIButton
1. 生成UIButton let btn:UIButton = UIButton(type: UIButtonType.Custom )as UIButton //初始化button的对象和风格 btn.frame = (CGRect(origin: CGPointMake(10.0, 110.0), size: CGSizeMake(150,50))) //原创 2015-08-14 00:16:44 · 532 阅读 · 0 评论 -
Swift 爬行篇 UITableView
1. UITableView 就是表格,但是只有行没有列 创建格式有Plain和Group 而实现函数则有两个代理 delegate , 处理tableview中的逻辑关系 dataSource ,资源数据,用来插入在TableView中的数据原创 2015-08-15 23:27:04 · 356 阅读 · 0 评论 -
swift爬行篇 滑块,进度条,步进,
滑块1. 创建let Sli: UISlider = UISlider(frame: CGRectMake(10.0, 270, 300, 5)) as UISlider Sli.minimumValue = 10 Sli.maximumValue = 300 Sli.continuous = false continous属性为tru原创 2015-08-17 21:58:33 · 600 阅读 · 0 评论 -
swift plist文件
1.创建pliet文件new file->Resource->Property List 输入plist文件名称 2.Root 和Item的设置3. var CellInfor : NSMutableArray! let bundle = NSBundle.mainBundle() // 创建bundle原创 2015-09-14 22:38:57 · 582 阅读 · 0 评论