- 博客(3)
- 收藏
- 关注
原创 限制TextField的字符串输入个数
- (BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string { if ([string isEqualToString:@"\n"]){ return YES;
2015-03-20 14:38:22
466
原创 关于字符串的相关操作
//分割字符串 NSString *string = @"hello world"; NSArray *tmpAry = [string componentsSeparatedByString:@" "]; NSLog("%@",tmpAry); //字符串替换 NSString *string = @"hello world"; NSString *newString =
2015-03-20 14:10:58
270
原创 Quarz 2D 绘图问题求教
我取了一个数组:array,数组中的元素是通过一个定时器,每10秒添加一个,并调用 setneedsdisplay。 然后我的drawRect是这样写的: - (void)drawRect:(CGRect)rect { CGContextRef context = UIGraphicsGetCurrentContext(); CGContextSetLineWidth
2013-01-23 16:02:02
262
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人