{"action":"created","issue":{"url":"https://api.github.com/repos/ibireme/YYText/issues/434","repository_url":"https://api.github.com/repos/ibireme/YYText","labels_url":"https://api.github.com/repos/ibireme/YYText/issues/434/labels{/name}","comments_url":"https://api.github.com/repos/ibireme/YYText/issues/434/comments","events_url":"https://api.github.com/repos/ibireme/YYText/issues/434/events","html_url":"https://github.com/ibireme/YYText/issues/434","id":169278511,"number":434,"title":"很严重的crash Bug  ，YYTextview使用attributedText赋值单个系统❤️ 表情，内存会暴增导致crash ","user":{"login":"nizenyang","id":8390188,"avatar_url":"https://avatars.githubusercontent.com/u/8390188?v=3","gravatar_id":"","url":"https://api.github.com/users/nizenyang","html_url":"https://github.com/nizenyang","followers_url":"https://api.github.com/users/nizenyang/followers","following_url":"https://api.github.com/users/nizenyang/following{/other_user}","gists_url":"https://api.github.com/users/nizenyang/gists{/gist_id}","starred_url":"https://api.github.com/users/nizenyang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nizenyang/subscriptions","organizations_url":"https://api.github.com/users/nizenyang/orgs","repos_url":"https://api.github.com/users/nizenyang/repos","events_url":"https://api.github.com/users/nizenyang/events{/privacy}","received_events_url":"https://api.github.com/users/nizenyang/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-08-04T02:38:22Z","updated_at":"2016-08-05T08:36:29Z","closed_at":null,"body":"赋值\r\n\r\n`NSDictionary *dic = @{NSFontAttributeName:[UIFont systemFontOfSize:16],\r\nNSForegroundColorAttributeName:[UIColor redColor]};\r\n NSMutableAttributedString *mutableAttStr = [[NSMutableAttributedString alloc] initWithString:@\"❤️\"];\r\n [mutableAttStr addAttributes:dic range:NSMakeRange(0, mutableAttStr.length)];`\r\n\r\n`YYTextView *textView = [YYTextView new];\r\n textView.selectable = NO;\r\n textView.editable = NO;\r\n textView.highlightable = YES; \r\ntextView.scrollEnabled = NO; \r\ntextView.textContainerInset = UIEdgeInsetsMake(6, 0, 10, 0);\r\n textView.dataDetectorTypes = UIDataDetectorTypePhoneNumber | UIDataDetectorTypeLink; YYTextLinePositionSimpleModifier *modifier = [YYTextLinePositionSimpleModifier new]; modifier.fixedLineHeight = 20; \r\ntextView.linePositionModifier = modifier;\r\n textView.attributedText = mutableAttStr;\r\n textView.size = self.view.size;\r\n textView.delegate = self; \r\nif (kiOS7Later) { \r\ntextView.keyboardDismissMode = UIScrollViewKeyboardDismissModeInteractive; } else { textView.height -= 64; }\r\n textView.contentInset = UIEdgeInsetsMake(toolbar.bottom, 0, 0, 0); \r\n// textView.scrollIndicatorInsets = textView.contentInset; \r\n// textView.selectedRange = NSMakeRange(text.length, 0);\r\n [self.view insertSubview:textView belowSubview:toolbar];\r\n self.textView = textView;`\r\n\r\n在你的demo里面的YYEditExample.m\r\n里面测试，模拟器内存暴增至16g后崩溃"},"comment":{"url":"https://api.github.com/repos/ibireme/YYText/issues/comments/237789106","html_url":"https://github.com/ibireme/YYText/issues/434#issuecomment-237789106","issue_url":"https://api.github.com/repos/ibireme/YYText/issues/434","id":237789106,"user":{"login":"nizenyang","id":8390188,"avatar_url":"https://avatars.githubusercontent.com/u/8390188?v=3","gravatar_id":"","url":"https://api.github.com/users/nizenyang","html_url":"https://github.com/nizenyang","followers_url":"https://api.github.com/users/nizenyang/followers","following_url":"https://api.github.com/users/nizenyang/following{/other_user}","gists_url":"https://api.github.com/users/nizenyang/gists{/gist_id}","starred_url":"https://api.github.com/users/nizenyang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nizenyang/subscriptions","organizations_url":"https://api.github.com/users/nizenyang/orgs","repos_url":"https://api.github.com/users/nizenyang/repos","events_url":"https://api.github.com/users/nizenyang/events{/privacy}","received_events_url":"https://api.github.com/users/nizenyang/received_events","type":"User","site_admin":false},"created_at":"2016-08-05T08:36:29Z","updated_at":"2016-08-05T08:36:29Z","body":"@devjiangzhou 你加了一个\\n会不会导致文本换行呢？"}}
{"actor":{"display_login":"nizenyang"}}