xcode loading view - iphone

I would like to show a progress view while my app is downloading files when starts. Loading view should be active until download ends, then, main tab controller will be shown. Which is the best method to reach it? Thanks

I think, loading the "main tab controller" first and then adding a view on top which shows the Progress should do the work.
Maybe MBProgressHUD (GitHub) could be interesting for you.
It's nice if the user will see little more then only progress. So make the View in Front translucent.

Related

Splash screen with progression bar

I am working in a app I an considering making a splash screen with a uiprogression bar, taking the time the loading of the app lasts...
I am not sure how to do this.
Can anyone give me a few tips please.
PS: I am asking this because I think I cannot add a class to launchscreen... So is it possible to do this in the launchscreen? If so, how?
You can't do much on launchscreen since, even custom font's not are loaded on it. Just create initial navigation controller, where first view controller will have your progress bar, write a delegate for your progress bar so when it will finish loading it will do action.
You can't do anything on launch screen. But If you want to show uiprogress bar on launch screen then you have to design a view controller just like your launch screen and show it right after launch screen, do your work while uiprogress bar is showing when you finish your work then show next controller.

Xcode - Manually load a view controller

What I am asking may be impossible and sound weird, but here it goes.
Here is similar to what I want to achieve:
A user opens the app for the first time, there are two tab bars, in the first one (he has not tapped the second one yet) he presses a button that should initiate a progress view and text view changes and other view changes EVEN THOUGH the user has not loaded the other view controller by clicking the second tab bar.
So, is there a way to generally load a view controller before the user manually loads it himself, I know calling viewDidLoad manually will not help, any suggestions? Pretty confusing, it is like modifying a view but the controller has not loaded yet...
Thanks!
Make the changes in the other view controller and then let the controller configure its own view when it does its natural loading.

View controller IOS switch between views

I am new at ios programming and I need some help, can't figure out how I am going to switch between two views without firing a button event
I have a splash screen waits for 2 sec then it should go to main view. I don't know how I am going to acquire the main view's reference and navigate to main view!
Any tutorial about switching between views programmatically?
Thanks for your help.
Cheers
For Splash screen you have to name it Default.png and in appDelegate didFinishlaunchingMethod, you have to add view controller to window. the Default.png is automatically reference as a splash screen. try it out
Start with one of Xcodes default projects, and see how they are setup. They should give you a window, with a main view out of the box.
If you add a Default.png image file to your project, it will automatically be used as a splash screen and displayed upon startup. However it will not be visible for 2 seconds, but rather as long as it takes for the application to start.
If you want it to be displayed longer, you will have to add a UIImageView with the same png image to your mainview, then remove this from your mainview after two seconds.
You can use performSelector:withObject:afterDelay to trigger the hiding of the UIImageView after a period of time. However this goes against Apples design guide, as the splash screen only is meant as a ting for the user to look upon before the application launches.
As for adding new views, I recommend using a UINavigationViewController. Using this enables you to navigate back to the main view, and you also get a nice animation as a transition between the views.
If you want to switch between views you use addSubview
maybe this tutorial will help ->Tutorial

iPhone Loading Popup Scroll Down

is there anyone knows a lib for creating a simple view that scroll down from the top of the screen for "Loading.." message?
Like http://github.com/matej/MBProgressHUD but the view should scroll down when begins to loading and scroll up when finish.
It might seem a little jarring to the user to scroll down and then back up. It shifts the users view of the data down and then back up without user interaction ...
I would simply overlay the loading view ...
Objective C: Adding Loading View to View Controllers
Check the code here: Simple Notifications for iPhone. Sorry for Russian, but the idea should be clear. You just need to add transition from the top of the page when notification label is shown.

How can I have a view and a subview under one tab on the iphone?

Here is my situation. I have an app with four tabs. The first tab contains a registration screen. Once the user is registered I want the SAME tab to load a separate "Latest News" screen instead of the registration screen. Any help would be appreciated.
This sounds like a design issue. It's usually a better idea to display a registration/login view as a modal view. So when the registration is complete, you can dismiss the modal view, and underneath your "latest news" view would already be there. Most likely, you don't want your users to be able to switch to another tab in the middle of the registration process, displaying it modally would take care of that issue as well.
Don't forget that UITabBarController is a UIViewController as well. So you can simply do:
[tabBarController presentModalViewController:registrationController];
And when you are done, dismiss it, and make sure your latest news tab is selected.
Use navigation controller (UINavigationController).
There are plenty of tutorials about iPhone apps navigation on the Web...