问题
My app works fine in device from xcode. But crashes when run using ipa file. When I checked the console using organizer, the following error has been displayed
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UINibDecoder setScrollEnabled:]: unrecognized selector sent to instance
I have used UIPageViewController that displays data in UITextView. Data has been added dynamically using NSOperation to the array , which has been used to display in UITextView.
The error-prone line of code is in DataViewController of the UIPageViewController. Here is the code
textView=[[UITextView alloc]initWithFrame:CGRectMake(0, 0, 290, 500)];
parentView.backgroundColor=[UIColor whiteColor];
[textView setAttributedText:textViewAttributedString];
[textView setScrollEnabled:NO];
[textView setBounces:NO];
textView.translatesAutoresizingMaskIntoConstraints=NO;
textView.editable=NO;
textView.selectable=YES;
textView.delegate=self;
textView.tag=currentTextViewTag;
来源:https://stackoverflow.com/questions/24359129/app-works-fine-with-developer-build-with-xcode-but-crashes-when-run-using-ipa-f