Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Displaying <code>UIActivityIndicator</code> for this operation requires putting it in <strong>didFinishLaunchingWithOptions</strong> of <strong>appDelegate</strong>. Perform uploading in different thread so that indicator is displayed as long as operation is carried out. The change will be as follows : </p> <pre><code>- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { [self copyDatabaseIfNeeded]; NSMutableArray *tempArray = [[NSMutableArray alloc] init]; self.coffeeArray = tempArray; [tempArray release]; [Coffee checkData:[self getDBPath]]; int mytestcount=rowCount; NSLog(@"My Test ROw Count IS %d",mytestcount); if (mytestcount=0) { NSLog("No Data To Upload"); } else { [Coffee getInitialDataToDisplay:[self getDBPath]]; //Set activity indicator here and perform uploading in different thread so that indicator is displayed as long as operation is carried out. [self performSelector:@selector(uploadData) withObject:nil afterDelay:0]; } [self.window addSubview:[navigationController view]]; [self.window makeKeyAndVisible]; return YES; } </code></pre> <p>Creating a <code>UIActivityIndicator</code> in an alert is not difficult task. You can do it as follows : </p> <pre><code>UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@" " message:@" " delegate:self cancelButtonTitle:nil otherButtonTitles:nil]; UIActivityIndicatorView *progress= [[UIActivityIndicatorView alloc] initWithFrame:CGRectMake(125, 50, 30, 30)]; progress.activityIndicatorViewStyle = UIActivityIndicatorViewStyleWhiteLarge; [alert addSubview:progress]; [progress startAnimating]; [alert show]; </code></pre> <p>You can customize your <strong>alert</strong> as you like it to be.<br> Hope this helps.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload