Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6936051
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T12:11:02+00:00 2026-05-27T12:11:02+00:00

I am currently building an Iphone app that is using storyboards. I know how

  • 0

I am currently building an Iphone app that is using storyboards. I know how to open new views with buttons via the ctrl+click method etc. The problem I have is that when the user clicks the button, I need to do some calculations and processing, as well as opening a web connection to pull data so I can populate the table in the next view but the view opens first before I can do any of this.

What I’m running into is the view is loading long before I am finished connecting to the web service and have calculated and stored the data for the table in the next view, so it loads blank. I need to either call the view in the button programmatically or somehow slow down the processes with some kind of “loading” screen but don’t know how to do either. I guess if its possible to fill the data in the table after the view loads, that could work as well. (if its possible)

Any tips or articles that can point me in the right direction would be appreciated. I haven’t found anything myself.

Thanks.

–connect method–

- (IBAction)connect:(id)sender {
//First begin by logging into the web service.

_email = self.logintxt.text;

//                            ---SOAP 1.1---
//large soap creation.  edited for privacy etc.
NSString *soapMsg = 
[NSString stringWithFormat:@"",_logintxt.text
 ];

//---print it to the Debugger Console for verification---
//NSLog(soapMsg);

NSURL *url = [NSURL URLWithString: 
              @""];
NSMutableURLRequest *req = [NSMutableURLRequest requestWithURL:url];

//---set the headers---
NSString *msgLength = [NSString stringWithFormat:@"%d", [soapMsg length]];

[req addValue:@"" forHTTPHeaderField:@"Host"];
[req addValue:@"text/xml; charset=utf-8" forHTTPHeaderField:@"Content-Type"];
[req addValue:@"" forHTTPHeaderField:@"SOAPAction"];
[req addValue:msgLength forHTTPHeaderField:@"Content-Length"];

//---set the HTTP method and body---
[req setHTTPMethod:@"POST"];
[req setHTTPBody: [soapMsg dataUsingEncoding:NSUTF8StringEncoding]];



NSURLConnection *conn = [[NSURLConnection alloc] initWithRequest:req delegate:self];
if (conn) {
    XMLData = [NSMutableData data];     
}


[self performSelector:@selector(getXMLList) withObject:NULL afterDelay:2.0];
[self performSegueWithIdentifier:@"LoginSegue" sender:sender];
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T12:11:03+00:00Added an answer on May 27, 2026 at 12:11 pm

    what I can suggest is to write the button action yourself. to achieve this you have to put stuff in your .h like

    @interface MyClass : UIViewController {
        IBOutlet UIButton *my_btn;
    }
    
    @property (nonatomic, retain) IBoutlet UIButton *my_btn;
    
    - (IBAction)MyBtnTapped:(id)sender;
    

    in your .m remember to

      @synthesize my_btn;
    

    then just link the action to your button by using IB, and voila’
    the first step is done.

    in your .m you can now implement a function MybtnTapped that deals with the data retrival and then opens up the new UIView fulfilled with your new data.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm currently building an iPhone app that will display data from an NSMutableArray called
I am building an iPhone app that has some default data inside it via
I am currently building an iPhone app that I plan to submit to the
I'm building an iPhone app that communicates with an external server via JSON. The
I'm currently building a new app based on a legacy database. In the app,
I'm currently building a web form using APEX that is losely modelled after a
I am building an iPhone app. Currently when I close the app and relaunch
Hi I am currently trying to building a reader app for the iphone, a
I have an iPhone app I'm currently building in XCode 4.3 with Storyboard. I
I'm building an iPhone app that loads 5 items on a TabBarController. When the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.