Quantcast
Channel: 睿论坛 - 最新帖子
Viewing all articles
Browse latest Browse all 37470

CharacountForNote

$
0
0

按照书中的Tweak代码,在iOS7.1.2下面,一编辑Notes就崩溃。但是把代码改成这样子就可以,为什么??
-(void)noteContentLayerContentDidChange:(NoteContentLayer *)arg1 updatedTitle:(BOOL)arg2
{
%orig;
NSString *content = arg1.textView.text;
NSLog(@"iOSRE : Notes %@",content);
NSString *contentLength = [NSString stringWithFormat:@"%lu",(unsigned long)[content length]];
self.title = contentLength;
}
为啥不能用self.contentLayer替代?iOS7下面也是有这个属性的。


Viewing all articles
Browse latest Browse all 37470

Trending Articles