iphone - Textfield in alertview not working in ios7? -


i have application in i'm using specific design reason. put text field in alert view above otherbutton background image. working fine in ios 6 version.

uialertview *av=[[uialertview alloc] initwithtitle:@"fdhdj" message:@" hdfjkhfjkhdk" delegate:self cancelbuttontitle:@"ok" otherbuttontitles:@" ",@"cancel",nil];      av.alertviewstyle = uialertviewstyleplaintextinput;  namefield = [[uitextfield alloc] initwithframe:cgrectmake(10.0,43.0, 264.0, 44.0)];     namefield.borderstyle = uitextborderstylenone;     namefield.background = [uiimage imagenamed:@"text_field_default.png"];     namefield.contentverticalalignment = uicontrolcontentverticalalignmentcenter;     namefield.textalignment = uitextalignmentcenter;     //[namefield setbackgroundcolor:[uicolor whitecolor]];     [av addsubview:namefield];     [namefield release];     av.tag=12;     av.delegate=self;       [av show];      [av release]; 

but in ios 7, heard can't alter view hierarchy of uialertview. 1 alternative case set

alert.alertviewstyle = uialertviewstyleplaintextinput

but can add text field in wherever want? in case above first otherbutton.can me?

the simple answer question no, can't change in testfield uialertviewstyleplaintextinput , shouldn't.

this apple:

the uialertview class intended used as-is , not support subclassing. view hierarchy class private , must not modified.

and unfortunately heard i heard can't alter view hierarchy of uialertview wrong, cannot alter view hierarchy of uialertview in ios7 @ all.

there alternative on web, can check in cocoacontrols.com


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -