摘要: 开发目标:本次需求仅仅只需读取通讯录信息- (void)loadPerson{ ABAddressBookRef addressBookRef = ABAddressBookCreateWithOptions(NULL, NULL); if (ABAddressBookGetAu... 阅读全文
posted @ 2015-11-23 10:59 寻找小猪 阅读(181) 评论(0) 推荐(0) 编辑
摘要: 常用手势: 滑动,轻点,捏合,旋转,拖拽,长按1.滑动(快速滑动)let swipeUp = UISwipeGestureRecognizer(target: self, action: Selector("swipe:"))swipeUp.direction = UISwipeGestureRec... 阅读全文
posted @ 2015-11-19 14:29 寻找小猪 阅读(259) 评论(0) 推荐(0) 编辑
摘要: 创建scrollviewscrollView = UIScrollView()scrollView.delegate = selfscrollView.frame = self.view.boundslet imageView = UIImageView(image: UIImage(named: ... 阅读全文
posted @ 2015-11-19 13:57 寻找小猪 阅读(120) 评论(0) 推荐(0) 编辑
摘要: 创建并设置相关属性var stepper : UIStepper!//微调器var label : UILabel!stepper = UIStepper()stepper.frame = CGRectMake(50, 200, 280, 50)stepper.minimumValue = 0//最... 阅读全文
posted @ 2015-11-19 11:56 寻找小猪 阅读(175) 评论(0) 推荐(0) 编辑
摘要: //遵守协议时需要把必须遵守的协议都实现了否则报红UIPickerViewDelegate,UIPickerViewDataSource创建PickerViewpickerView = UIPickerView()pickerView.delegate = selfpickerView.dataSo... 阅读全文
posted @ 2015-11-19 11:44 寻找小猪 阅读(241) 评论(0) 推荐(0) 编辑
摘要: 自iOS8起,苹果就建议告警框使用UIAlertController来代替UIAlertView在ViewDidLoad中加载时报错 whose view is not in the window hierarchy! 视图没创建出来之前是不能弹出来的解决办法,延长时间加载1.一般的提示框func ... 阅读全文
posted @ 2015-11-19 11:30 寻找小猪 阅读(165) 评论(0) 推荐(0) 编辑
摘要: introduced=2.0, deprecated=8.3 早已废弃 还是拥抱 UIAlertController 吧创建UIActionSheetlet actionSheel = UIActionSheet()actionSheel.addButtonWithTitle("取消")action... 阅读全文
posted @ 2015-11-19 11:21 寻找小猪 阅读(128) 评论(0) 推荐(0) 编辑
摘要: introduced=2.0, deprecated=9.0 ios9已经废弃 建议使用UIAlertController创建AlertViewlet alertView = UIAlertView()alertView.title = "温馨提示"alertView.message = "UIAl... 阅读全文
posted @ 2015-11-19 11:13 寻找小猪 阅读(166) 评论(0) 推荐(0) 编辑
摘要: 创建UISliderlet slider = UISlider(frame: CGRectMake(50, 100, 280, 50))slider.backgroundColor = UIColor.clearColor()slider.minimumValue = 0//最小值slider.ma... 阅读全文
posted @ 2015-11-19 11:04 寻找小猪 阅读(122) 评论(0) 推荐(0) 编辑
摘要: 创建UIProgressViewlet progressView = UIProgressView(progressViewStyle:.Default)progressView.frame = CGRectMake(20, 100, 300, 0)self.view.addSubview(prog... 阅读全文
posted @ 2015-11-19 10:54 寻找小猪 阅读(144) 评论(0) 推荐(0) 编辑