views:

125

answers:

0

As we have learnt almos at first time to make iPhone app with Hello World But I really wonder if we can use UIActivityIndicator with this tutorial ? if yes, how ? MAybe I need to post some code here alittle bit:

  • (IBAction) btnClickMe_Clicked:(id)sender {

    NSString *FirstName = txtFirstName.text; NSString *LastName = txtLastName.text; NSString *Message = nil;

    if([FirstName length] == 0 && [LastName length] == 0) Message = [[NSString alloc] initWithFormat:@"Anonymous says Hello Universe!!!"]; else if ([FirstName length] > 0 && [LastName length] ==0) Message = [[NSString alloc] initWithFormat:@"%@ says Hello Universe", FirstName]; else if ([FirstName length] == 0 && [LastName length] == 0) Message = [[NSString alloc] initWithFormat:@"%@ says Hello Universe", LastName]; else Message = [[NSString alloc] initWithFormat:@"%@ %@ says Hello Universe", FirstName, LastName];

    lblMessage.text = Message;

    //Release the object [Message release]; }

Could somebody will please help me ? THank you so much