摘要:
阅读全文
摘要:
当 frame是根据内容 大小计算出来的时候,是填充的,如果 内容小于frame,那么 默认是居中的,因此上面会有空袭, 阅读全文
摘要:
-(void)setInfos:(ZSTActivityInfo *)infos{ _infos = infos; self.mTextView.text = infos.participation; [self.mTableViewreloadData]; TTLog(@"winnerlist %d",infos.winnerlist.count);} 阅读全文
摘要:
点击 imageview还是 点击 button,点击效果,button好像更强大些, 阅读全文
摘要:
[self.tableViewsetAllowsSelection:NO]; lotteryCell.selectionStyle = UITableViewCellSelectionStyleBlue; 阅读全文
摘要:
一个位置 到另外一个位置,然后 用 uiview animation, 阅读全文
摘要:
可以使用appendString或appendFormat来对可变字符串操作:-(void)appendString: (Nsstring *) aString;-(void) appendFormat: (NSString *) Format;appendString接受参数aString,然后将其复制到接受对象的末尾。appendFormat类似,他将格式化的字符串附加在接受对象的末尾,而不是创建新的对象。 阅读全文
摘要:
NScoding 是一个协议,主要有下面两个方法-(id)initWithCoder:(NSCoder *)coder;//从coder中读取数据,保存到相应的变量中,即反序列化数据-(void)encodeWithCoder:(NSCoder *)coder;// 读取实例变量,并把这些数据写到coder中去。序列化数据NSCoder 是一个抽象类,抽象类不能被实例话,只能提供一些想让子类继承的方法。NSKeyedUnarchiver 从二进制流读取对象。NSKeyedArchiver 把对象写到二进制流中去。 阅读全文
摘要:
typedefenum { ZCWScrollNumAnimationTypeNone, ZCWScrollNumAnimationTypeNormal, ZCWScrollNumAnimationTypeFromLast, ZCWScrollNumAnimationTypeRand, ZCWScrollNumAnimationTypeFast} ZCWScrollNumAnimationType;- (void)setNumber:(NSUInteger)number withAnimationType:(ZCWScrollNumAnimationType)type animati... 阅读全文
摘要:
uiviewcontroller ,UIResponder,nsobjectuitableviewcell ,uiview,uiresponder, 阅读全文