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:-

enter image description here


Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

How to get multiresult with multicondition in Sql Server -