摘要: UIPageControl1.numberOfPages // 设置有多少页 默认为0// 2) 设置页数 [pageControl setNumberOfPages:kImageCount];2.currentPage // 设置当前页[pageControl setCurrentPage:0];... 阅读全文
posted @ 2015-09-02 23:54 王刚韧(wanghy_iOS) 阅读(119) 评论(0) 推荐(0) 编辑
摘要: UIScrollView1.contentOffset默认CGPointZero,用来设置scrollView的滚动偏移量。 // 设置scrollView的滚动偏移量 scrollView.contentOffset = CGPointMake(0, 200);2.contentSize默认CGS... 阅读全文
posted @ 2015-09-02 23:50 王刚韧(wanghy_iOS) 阅读(143) 评论(0) 推荐(0) 编辑
摘要: UITextField属性0. enablesReturnKeyAutomatically 属性默认为No,如果设置为Yes,文本框中没有输入任何字符的话,右下角的返回按钮是disabled的。1.borderStyle设置边框样式,只有设置了才会显示边框样式 text.borderStyle =... 阅读全文
posted @ 2015-09-02 23:43 王刚韧(wanghy_iOS) 阅读(182) 评论(0) 推荐(0) 编辑
摘要: UITextView属性1.text:设置textView中文本_textView.text =@"Now is the time for all good developers to come toserve their country.\n\nNow is the time for all go... 阅读全文
posted @ 2015-09-02 23:29 王刚韧(wanghy_iOS) 阅读(194) 评论(0) 推荐(0) 编辑
摘要: UIView属性1.alpha设置视图的透明度.默认为1. // 完全透明 view.alpha =0; // 不透明 view.alpha =1;2.clipsToBounds// 默认是NO,当设置为yes时,超出当前视图的尺寸的内容和子视图不会显示。view.clipsToBounds =YE... 阅读全文
posted @ 2015-09-02 23:23 王刚韧(wanghy_iOS) 阅读(168) 评论(0) 推荐(0) 编辑
摘要: UITableView相关总结样式:UITableView内置了两种样式:UITableViewStylePlain(也就是一组) UITableViewStyleGrouped(多组)里的方法:tableView处理步骤#pragma mark 1.有多少组-(NSInteger)numberOf... 阅读全文
posted @ 2015-09-02 23:07 王刚韧(wanghy_iOS) 阅读(166) 评论(0) 推荐(0) 编辑