iphone - Strange color in UIActionSheet -
today added 1 uiactionsheet project , displayed strangely:
as can see, action sheet displays text - no buttons - , background black. want have default style of uiactionsheet on app.
i'm using storyboards , here code present action sheet:
uiactionsheet *_actionsheet = [[[uiactionsheet alloc] initwithtitle:locstr(@"cell_tellfriend_key") delegate:self cancelbuttontitle:locstr(@"cancel_key") destructivebuttontitle:nil otherbuttontitles:locstr(@"emailshare_key"),locstr(@"facebookshare_key"),locstr(@"twittershare_key"),nil] autorelease]; _actionsheet.actionsheetstyle = uiactionsheetstyledefault; appdelegate *appdelegate = (appdelegate*)[[uiapplication sharedapplication] delegate]; [_actionsheet showfromtabbar:appdelegate.tabbarctrl.tabbar];
what doing wrong? how can fix this?
_actionsheet.actionsheetstyle = uiactionsheetstyleblackopaque;
Comments
Post a Comment