ios - Getting error in displaying text through textview -
i have created application in have added text through uitextview programmatically , add textview subview of custom viewcontroller. problem text not displaying in viewcontroller. please me through this.
code this--
uitextview *textview =[[uitextview alloc] init]; textview.text = @"text here"; [textview setfont:[uifont systemfontofsize:90]]; textview.delegate = self; [textview setbackgroundcolor: [uicolor clearcolor]]; [textview settextcolor: [uicolor whitecolor]]; textview.frame=cgrectmake(150,300,self.view.frame.size.width-40,200); //textview.transform = cgaffinetransformmakerotation(m_pi_4); [textview setreturnkeytype:uireturnkeydone]; textview.autoresizingmask = uiviewautoresizingflexiblewidth; [self.view addsubview:textview];
sometimes ibuilder missed custommodule="appname" custommoduleprovider="target"
to fix it, open storyboard source code , replace line:
<viewcontroller storyboardidentifier="storyboardid" id="someid" customclass="customclass" scenememberid="viewcontroller">
to this:
<viewcontroller storyboardidentifier="storyboardid" id="someid" customclass="customclass" custommodule="appname" custommoduleprovider="target" scenememberid="viewcontroller">