display uiactivityindicatorview on button click through notification ios 5

Ads
 

display uiactivityindicatorview on button click through notification ios 5

I wants to add a UIActivity Indicator view on UIView controller. Also i want to display a Activity indicator when a UIButton is click. I searched a different method including alert view and delegate method to show the indicator but nothing worked for me. Please help....

View Answers

June 30, 2012 at 11:56 AM

Display UIActivity Indicator view on UIView Controller through Notification Method...

- (void)viewDidLoad
{
   [super viewDidLoad];

      UIActivityIndicatorView *mActivity = [[UIActivityIndicatorView alloc] initWithFrame:
                 CGRectMake(300.00, 280.00, 60.0, 60.0)];
    [mActivity setBackgroundColor:[UIColor blackColor]];
    [self.view addSubview:mActivity];

}

-(void)threadStartAnimating:(id)data
{
    [mActivity setHidden:NO];
    [mActivity startAnimating]; 
}


-(IBAction)switchViewController:(id)sender {

[NSThread detachNewThreadSelector:@selector(threadStartAnimating:) toTarget:self withObject:nil];

}

Ads









Related Tutorials/Questions & Answers:
display uiactivityindicatorview on button click through notification ios 5
display uiactivityindicatorview on button click through notification ios 5 ... want to display a Activity indicator when a UIButton is click. I searched... view on UIView Controller through Notification Method... - (void)viewDidLoad
On Click on Submit Button Display Data on Orderlist
On Click on Submit Button Display Data on Orderlist  How can retreive data from database on orderlist on Click on submit Button of same page
Advertisements
How to Display next Record from Database "On the Click of Next Button" USING ARRAYLIST
How to Display next Record from Database "On the Click of Next Button" USING ARRAYLIST  How to Display next Record from Database "On the Click of Next Button" USING ARRAYLIST,please send answer as soo as possible
How to Display next Record from Database "On the Click of Next Button" USING ARRAYLIST
How to Display next Record from Database "On the Click of Next Button" USING... records in index form) to show next data on button click,so that it will goes to next list and sees the index and display another records Please reply. <
How to Display next Record from Database "On the Click of Next Button" USING ARRAYLIST
How to Display next Record from Database "On the Click of Next Button" USING... records in index form) to show next data on button click,so that it will goes to next list and sees the index and display another records Please reply. <
passing values on button click
passing values on button click  Please help me to solve this issue.I want to pass a value assigned to button to another view upon button click in xcode
iphone button click event
iphone button click event  Hi, How to write iphone button click event? Thanks   Hi, Here the method declaration: -(IBAction) myMetod...{ NSLog(@"Button clicked"); } Thanks
jquery button click
jquery button click  jquery button click - I have created a button in JQuery but the problem is that it's not detecting click. What could... to create a button event in JQuery. You can edit it as per your requirement. In Header
ModuleNotFoundError: No module named 'ios-notification'
ModuleNotFoundError: No module named 'ios-notification'  Hi, My... named 'ios-notification' How to remove the ModuleNotFoundError: No module named 'ios-notification' error? Thanks   Hi, In your
java swing button click event
java swing button click event  java swing button click event   public void doClick()   Java Swing Tutorials
JFrame Button click to start play
JFrame Button click to start play  i made a game and and i add a button in new jframe and i want when i click it it start to play...can anyone help me
ModuleNotFoundError: No module named 'django-ios-notification'
ModuleNotFoundError: No module named 'django-ios-notification'  Hi...: No module named 'django-ios-notification' How to remove the ModuleNotFoundError: No module named 'django-ios-notification' error? Thanks   
How to display button as a link in vaadin?
How to display button as a link in vaadin?  Hello, I am working on a Vaadin based web application. I want the button to be displayed like link...: final Button btnClickMe = new Button("Click Me"); btnClickMe.setStyleName
How to call java method on Button click in jsp?
How to call java method on Button click in jsp?  How to call java method on Button click in jsp
Draw a line in a JPanel with button click in Java
Draw a line in a JPanel with button click in Java  Draw a line in a JPanel with button click in Java
executing multiple sql statements on the single button click...
executing multiple sql statements on the single button click...  how can i frame a code on the click of a button to insert data into a table as well as to retrieve records from the same table in another form
executing multiple sql statements on the single button click...
executing multiple sql statements on the single button click...  how can i frame a code on the click of a button to insert data into a table as well as to retrieve records from the same table in another form
click on back button go to the login page
click on back button go to the login page  now when i click on back button the page show that page on where i came from and it shows the session expired but i want when i click a back buttob then it should show a login page
JSP view detail page on accept button click
JSP view detail page on accept button click  i Have 1 jsp page in that there r 2 button accept and view details when we click on aceept button it will submit to next page and when click on view details page it will shown the data
change database values when click next button on jsp page
change database values when click next button on jsp page  How to retrive database values rondomly and display jsp page ,when user click next and previous bottons change the values on jsp page
Click On Images of Submit Button Perform Action
Click On Images of Submit Button Perform Action  I have login page in which insert of submit button i used image. Therefor on Click of image i have to validate form , link with database and goto the next page
ModuleNotFoundError: No module named 'adafruit-circuitpython-display-notification'
: ModuleNotFoundError: No module named 'adafruit-circuitpython-display-notification...-circuitpython-display-notification' error? Thanks   Hi, In your...-circuitpython-display-notification python with following command: pip install
print form information when click on print button
print form information when click on print button   Sir,I desingn institute webside using jsp and strut by using platform netbean 7.2.So request you please help for printing form information by clickin print button after submit
Browser Back Button click event javascript
Browser Back Button click event javascript  I am using the below code but window.onBeforeUnload is not working with back button.. how can i apply the below code for the click event of back button? window.onBeforeUnload
SaveAs Dialogue box is not working on button click in servlet
SaveAs Dialogue box is not working on button click in servlet  Hii... the data into excel file but this is not working on button click ...plz give me..."); rowhead.createCell((short) 5).setCellValue("duration"); rowhead.createCell((short) 6
ModuleNotFoundError: No module named 'adafruit-circuitpython-display-button'
ModuleNotFoundError: No module named 'adafruit-circuitpython-display-button...: ModuleNotFoundError: No module named 'adafruit-circuitpython-display-button' How...-display-button python with following command: pip install adafruit-circuitpython
Simple Text display
to display any text in a text input box using a button click. It is very simple...;0"/>   <mx:Button label="click me" click="... Simple Text display     
display contents on the same page by selecting a radio button
display contents on the same page by selecting a radio button  Bill... if i click on pending then the due date text field should be displayed on the same page under the radio button
Version of com.gluonhq>charm-down-plugin-display-ios dependency
List of Version of com.gluonhq>charm-down-plugin-display-ios dependency
display Helloworld through servlets using jboss
display Helloworld through servlets using jboss  I'm beginner,Can You please Write the code for this.Including WEB.INF   Please visit the following link: http://www.roseindia.net/jboss
Expand / Collapse form div when click on button
Expand / Collapse form div when click on button  Hi, I have a form integrated from Wufoo with iFrame code. If the user misses a field an error message appears but it takes more space than the DIV Formbox. How can I make the DIV

Ads