devxoul / UITextView-Placeholder

A missing placeholder for UITextView
MIT License
1.48k stars 259 forks source link

delloc error #18

Closed NagiYan closed 8 years ago

NagiYan commented 8 years ago

crash stack: [UITextView dealloc] [UITextView dealloc] ... ... ... [UITextView dealloc] [UITextView dealloc] [UITextView dealloc]

ios9.1 only if I put your files in my project, delloc crash, remove files then ok.

devxoul commented 8 years ago

Could you please how did you setup UITextView-Placeholder in your project? Or the code using UITextView.

NagiYan commented 8 years ago

I put the h and m files in my project, // 输入框

input = [[UITextView new] autorelease];
[containor addSubview:input];
[input mas_makeConstraints:^(MASConstraintMaker *make) {
    make.left.equalTo(back).with.offset(10);
    make.right.equalTo(back).with.offset(-10);
    make.top.equalTo(back);
    make.height.equalTo(@100);
}];
[input setText:@"placeholder"];

everywhere i user uitextview, nomatter use or not use placeholder, even uisearchbar,when delloc, crash

devxoul commented 8 years ago

Did you mean the infinite recursive dealloc call?

NagiYan commented 8 years ago

yes!

devxoul commented 8 years ago

OK, thank you for report. I'll check it soon. :smile:

devxoul commented 8 years ago

@NagiYan, could you please test with new project?

NagiYan commented 8 years ago

where is the new version?

devxoul commented 8 years ago

Not a new version. Create a new project and add UITextView+Placeholder. Does it crash?

NagiYan commented 8 years ago

new project is ok...

NagiYan commented 8 years ago

i tryed to update all my pods, it seems ok now

devxoul commented 8 years ago

Cool! If it crashes again, please reopen it.