Adding Background Image to FlowCover - iphone

I'm using FlowCover in an app and need to add a background, but inserting a UIImageView and sending to the back in .xib only gives me the background image and buttons and no coverflow animation. I also cannot see where i would programme a
self.backgroundColor = [[UIColor alloc]initWithPatternImage:[UIImage imageNamed:#"bground.png"]];
type thing in the implemetation.
Any clues?

It does appear that you can add an UIImageview to the ViewController's View in the MainWindow.nib:
In the editor dropdown you can send the image to the back. It means that the Flow Cover View MUST NOT be set to Opaque and then will sit on top of the ImageView.

Related

Adding image to background

When you add Default.png, it gets shown up when the app is launched, i need to add this same image to all my tableviews, and viewcontrollers back grounds.
1.) Is it permitted by apple to use the Default.png to backgrounds of tableview and uiviews (I think its permitted, but i need to confirm)
2.) how do i add this image (Default.png) to a TableView's background ?
3.) how do i add this image (Default.png) to a Grouped TableView's background (This has sections too) ?
4.) how do i add this image (Default.png) to a UiViewControllers background ?
Yes, it is permitted, but generally speaking you might want to do this. According to the iOS programming guidelines:
When the system launches an app, it temporarily displays a static launch image on the screen. Your app provides this image, with the image contents usually containing a prerendered version of your app’s default user interface. The purpose of this image is to give the user immediate feedback that the app launched, but it also gives your app time to initialize itself and prepare its initial set of views for display. When your app is ready to run, the system removes the image and displays your app’s windows and views.
In other words, if you have any sort of pre-rendered UIKit elements (UINavigationBar, for example) in your Default.png, it probably doesn't make sense for it to be added as the background image of a view.
In any case, here's how you would set your UITableView background to your launch image:
self.tableView.backgroundView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:#"Default.png"]];
And for a UIViewController:
self.view.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:#"Default.png"]];
simply add ImageView to all the controllers and set its image and it is acceptable to use any image.Also set the tableviews background color to clear color
view.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:#"Default.png"]];

iphone-uiview-background

I am new to iPhone development. I have one XIB file, the login page (a form).
Now I want to set the UIView background image.
When I supply an image from Interface Builder then there is no effect, and when I set it from the code then also no effect.
self.view.backgroundColor = [UIColor colorWithPatternImage:
[UIImage imageNamed:#"srk_ipad_Homepg.png"]];
I don't want to use a UIImageView because when I place an image, all my controls are hidden behind the UIView.
You can use UIImageView to set a background without harm, you just have to move it to the top of the view hierarchy. Look at this splashscreen view:
And this is the view's hierarchy tree:
This will prevent your controls from being covered.

iPhone UIImageView not showing in set size

I have a simple app, straight out of the SDK TabBar template, where I implemented UIImageView outlet set in the AppDelegate UIWindow. I want to display there a static image each time user taps a tabbar item. It works fine (the image is displayed and hidden when it should) with one exception:
I have created the UIImageView in IB and set the size 320x430, so the image does not hide the tabbar. The problem is, UIImageView always shows the size of the window, covering entire screen. Any idea why?
Make sure that you set clipsToBounds to YES.

Moving the background image of iPhone upon event

I have a navigation based app where a certain pushed view has a nice background image. Now this view contains a UITextView which is transparent so my background shows all over the whole view except the top which holds the navigation bar. Now when I start editing the textview I would like the for the textview and the background image to "slide" up a few pixles under the navigation bar to be more visible when the keyboard shows up (without keyboard it is centered in on the screen).
I set the background with:
UIColor *background = [[UIColor alloc] initWithPatternImage:[UIImage imageNamed:#"background.png"]];
self.view.backgroundColor = background;
[background release];
But this does not allow me to move it. So I guess I have to make a subview or something to get this to work. I already have the animation for the textview in place, it's just the background image I also would like to move. How can I make this happen?
Just use the UIImageView for the background...

One background image must be displayed on the whole

I am new to iphone development.When i tried to displayed a background image for my table view ,image appears for every cells.I want display single image thats fits the screen and not displayed in every cell.Please help me out.Thanks.
Make your table view a subview of a UIView (let's call it parentView). You can then make the table view's background clear to show the UIView positioned underneath. You then set that UIView to contain an image view:
self.tableView.backgroundColor = [UIColor clearColor];
[self.parentView addSubview:myImageView];