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

android - Inheriting from Theme.AppCompat* -

broadcastreceiver - android BOOT_COMPLETED not received if not activity intent-filter -

basic authentication with http post params android -