ios - How to put activityindicator middle of a tableview -
i have put activity indicator
spinner.center = cgpointmake( [uiscreen mainscreen].bounds.size.width/2,[uiscreen mainscreen].bounds.size.height/2); [self.view addsubview:spinner]; but not centered in table view. because table view can scroll. how can put spinner in center of screen.
try bellow code:-
spinner.center = cgpointmake( [uiscreen mainscreen].bounds.size.width/2,[uiscreen mainscreen].bounds.size.height/2); yourappdelegateclass *appdelegate = (yourappdelegateclass*)[[uiapplication sharedapplication] delegate]; [appdelegate.window addsubview:spinner]; code output is:-

Comments
Post a Comment