摘要: #import "PublishContextView.h"@implementation PublishContextView-(void)drawRect:(CGRect)rect{ [super drawRect:rect]; CGContextRef context=UIGrap... 阅读全文
posted @ 2015-08-08 17:49 孤光一点莹 阅读(507) 评论(0) 推荐(0)
摘要: 自定义一个UITextViewUITextView 的selectedRange 影响 selectedTextRange 改变前者可影响后者self.selectedRange -->self.selectedTextRange@implementation HWStatusTextView- (... 阅读全文
posted @ 2015-08-08 16:41 孤光一点莹 阅读(4271) 评论(0) 推荐(0)
摘要: 先研究一种方法 NSMutableArray *array = [[NSMutableArray alloc] initWithCapacity:0]; for (int i = 0; i [obj2 intValue]) { return... 阅读全文
posted @ 2015-08-08 16:17 孤光一点莹 阅读(135) 评论(0) 推荐(0)
摘要: 学习了一下OC的正则表达式备忘一下使用正则表达式的步骤:创建一个一个正则表达式对象:定义规则。利用正则表达式对象测试,相应的字符串。NSString *userName = @"12132321";NSString *pattern = @"\\d"匹配数字NSString *pattern = @... 阅读全文
posted @ 2015-08-08 15:26 孤光一点莹 阅读(4567) 评论(0) 推荐(0)
摘要: @当我们在一个UIViewController中同时创建2个tableView的时候,如果把它们的frame中的Y坐标设置为一样,你可能会发现它们的位置并没有达到你想要的结果.比如第一tableView个frame(0,0,320,568),另一个也frame(0,0,320,568),结果会发现第... 阅读全文
posted @ 2015-08-08 11:56 孤光一点莹 阅读(161) 评论(0) 推荐(0)