摘要: contentSize是scrollview可以滚动的区域,比如frame = (0 ,0 ,320 ,480) contentSize = (320 ,960),代表你的scrollview可以上下滚动,滚动区域为frame大小的两倍。contentOffset是scrollview当前显示区域顶点相对于frame顶点的偏移量,比如上个例子你拉到最下面,contentoffset就是(0 ,480),也就是y偏移了480contentInset是scrollview的contentview的顶点相对于scrollview的位置,例如你的contentInset = (0 ,100),那么你的 阅读全文
posted @ 2013-04-28 23:27 cateatmycode 阅读(179) 评论(0) 推荐(0)
摘要: property with 'weak' attribute must be of object type:I have this in my interface:@property(nonatomic, weak)NSTimeInterval*timeStamp;Or:@property (nonatomic, weak) float height;Which my logic told me, I need a time stamp object, that only is going to be used by this class within the context 阅读全文
posted @ 2013-04-28 20:22 cateatmycode 阅读(876) 评论(0) 推荐(0)