posted @ 2013-04-07 16:26
随笔分类 - iOS
摘要:UIScrollView的几个重要方法: scrollViewDidScroll:scrollView只要在滚动就会触发该方法(无论是被用户拖动还是在拖动后scrollView由于惯性继续滚动一点距离) scrollViewWillBeginDragging:scrollView被用户拖动前就会触发
阅读全文
摘要:UIImageView *imageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"apple.jpg"]]; imageView.frame = CGRectMake(85.0, 100.0, 150.0, 148.0
阅读全文
posted @ 2013-04-03 16:02
摘要:@property (retain, nonatomic) NSMutableArray *nameArray; @property (retain, nonatomic) NSMutableArray *nameArray; self.nameArray是访问属性的,而_nameArray是访问实
阅读全文
posted @ 2013-03-15 19:24
摘要:因为TableView是屏幕的一部分,所以ViewControll不再继承UITableViewControl,继而必须加入tableView的委托协议<UITableViewDelegate, UITableViewDataSource> 具体实现代码如下: #import "ViewContro
阅读全文
posted @ 2013-03-13 19:48
摘要:1.添加UIScrollViewDelegate协议 2.在建一个隐藏在屏幕上方的Label UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(0, -100, 320, 100)]; label.font = [UIFont sy
阅读全文
posted @ 2013-03-13 16:02
摘要:http://cocoachina.com/ 比较好的IOS开发者论坛,个人非常推荐 http://developer.apple.com/iphone/ 苹果iPhone开发官方主页,提供大量实例、文档和教学视频 http://www.stanford.edu/class/cs193p/ 斯坦福大
阅读全文
posted @ 2013-03-11 14:58
摘要:首先添加AddressBook.framework类库.再#inport到头文件里. 具体代码如下:(分组首字母没有进行排序) #import "ViewController.h" #import @interface ViewController () @property (nonatomic,
阅读全文
posted @ 2013-03-11 10:50
浙公网安备 33010602011771号