iphone - Show a view over the keyboard -
i looking way on iphone, due custom 'loading' subview, have subview cover keyboard without dismissing keyboard. right when subview loads, keyboard still topmost. ideas?
add loading view subview on window. cover keyboard too. here stackoverflow post same
update
my code
#pragma mark - #pragma mark waiting view - (void)showwaitingview { cgrect frame = cgrectmake(90, 190, 32, 32); uiactivityindicatorview* progressind = [[uiactivityindicatorview alloc] initwithframe:frame]; [progressind startanimating]; progressind.activityindicatorviewstyle = uiactivityindicatorviewstylewhitelarge; frame = cgrectmake(130, 193, 140, 30); uilabel *waitinglable = [[uilabel alloc] initwithframe:frame]; waitinglable.text = @"processing..."; waitinglable.textcolor = [uicolor whitecolor]; waitinglable.font = [uifont systemfontofsize:20];; waitinglable.backgroundcolor = [uicolor clearcolor]; frame = [[uiscreen mainscreen] applicationframe]; uiview *theview = [[uiview alloc] initwithframe:frame]; theview.backgroundcolor = [uicolor blackcolor]; theview.alpha = 0.7; theview.tag = 999; [theview addsubview:progressind]; [theview addsubview:waitinglable]; [progressind release]; [waitinglable release]; [window addsubview:[theview autorelease]]; [window bringsubviewtofront:theview]; } - (void)removewaitingview { uiview *v = [window viewwithtag:999]; if(v) [v removefromsuperview]; }
Comments
Post a Comment