Display UIActivityIndicatorView while loading the application - iphone

I checked other questions and found none with my doubt.
Is there a way to display an UIActivityIndicatorView "on top" of Default.png while my iPhone application is being loaded?
Thanks in advance.
Camilo # lx-apps.com/

You can paste a (static) indicator view image on top of Default.png. Of course it won't animate.
Other than that you can't do anything because the app isn't loaded yet, so none of your UI code will run.

Related

What can I do to make an image appear before my app launch?

I´m doing an app for iPhone in objective-c, and before my app launches I want a splash screen to appear.
Thanks!
I think you are looking for Application Launch Images.
You just need to rename any image you want to "Default.png" and just add it in your project. That's all. Application will display that image while your app is loading.
As veredesmaralad answered, you can use an application launch image, but it's not really intended for use as a splash screen. It's intended to give the user immediate feedback that the app is launching, yet give the app some time to initialize. This image is displayed by the OS until your app puts its window on screen. The display time will vary from device to device.
If I were trying to do something more involved such as displaying the splash screen for a longer time, or animating the splash screen, I would display a view for the splash screen, then move on to the main app. I might just have my main UIViewController show the view, and then have an NSTimer tell the controller when to replace the view with the next view (e.g. the main user interface). For a more involved animated splash screen I might use a dedicated UIViewController to run that animation. Then when the animation completes I'd have the splash screen's controller load the next controller.
First off, this is called a "splash screen" and you may want to read up about it from somewhere like Wikipedia.
The answer to this question will depend heavily on what programming language you're using. If you could provide better explanation, a better answer can be given.

iPhone SDK loading screen

I have a view in my app where I use a very large photo that is Hi-Res and takes a bit of time to load. How do I put a loading screen while this is happening? The kind of loading screen with the spinning loading wheel so that the app does not look like it has frozen? Thanks in advance for any help!
Edit: Note that I am simply loading the image from the main bundle and not a URL
Check out these Open-Source activity indicators.
TDHUDProgressBar
Looks like Tweetie's/Twitter's Progress bar.
MBProgressHUD
A view that appears and contains a Activity Indicator, much like the Private Class UIProgressHUD.
Put an activity indicator (the spinning wheel) into your view and hide it when your hi-res image has finished loading.

Background of UINavigationController view turns white

My iPhone application uses the camera to take pictures, which I suspect is somewhat memory-intensive. The app uses a custom background image for the view of its UINavigationController, and after taking a few pictures, the background goes all white. Any ideas on what I can do to stop this?
Check to see if -didReceiveMemoryWarning is being called in any of your viewControllers. If it's a low memory problem, that's probably the culprit.
Expanding on Ben Gottlieb's post, is it really necessary for you to have the custom background image? That by itself is a big memory waste; I shutter (eh, camera pun) to think of combining the two without releasing the picture before redisplaying the tableView.
Unfortunately, the project was very specific about having a background image, so I had to retain it despite the memory waste.
My work-around was to unload the background once you've entered the photos-view, and then reload it before you leave. Not the most beautiful solution, but it works really well.
I had exactly the same issue, and resolved it by subclassing UINavigationController.
Then in the viewDidLoad method I simply create my background (ImageView) and add it to the view.
If your UINavigationController is created from a nib, just give it your custom class name in IB. I had to do that as I also have a custom navigationbar, which you can only set in IB.

[iPhone]A zone which user can't interact, why?

Plese refer to below image to get detail of my problem:
This maybe relate to Status bar???
*Note: this is a full-screen application. My way to do this:
1. add "Status bar is initially hidden" information property to xxx-Info.plist.
2. In all screen of app: set "Status Bar" to none.
You are likely loading a nib with your control set to 320x460, instead of 320x480. Post how you are generating this view and we can help more.
Is this happening on the device or just in the simulator?
The simulator has/had bugs that stop it reporting touches in the status bar area.
It really does look that your view is not big enough, and is sized to a screen with the status bar.
How do you create the UIControl? Using a NIB? What's the frame you assign to it? Post some code.

Full Screen Image Preview

Can someone please tell me how to get a full screen image preview view when someone taps on an image view of a nib... like the one in appstore application screenshots....
it will be a real help...
Thanks in advance
The first thing you need to do is subclass UIImageView.
Then in your subclass make sure that user interaction is enabled (either by setting it in code, or by checking the box in IB).
Then you need to override the touches:DidBeginWithEvent: (et al) methods (they're found in UIResponder), and put the code for what you want to happen inside them. For example, you could create a larger image view, and then attach it to the view hierarchy.
As for making it completely fullscreen, you'd need to set the frame of the image view to that of the Window, and hide any Tab Bars, Navigation Bars, Status bars, etc.
You can hide the status bar by using
[[UIApplication sharedApplication] setStatusBarHidde:YES];
Hide navigation bars:
[navigationController setNavigationBarHidden:YES];
so on and so forth. You should be able to find ways to hide most things by looking at their docs.
Hope this helps.
I actually wanted a control like the image preview in photos and that on facebook maybe....
which i found in the open source three20 repository... google it to find out ....