subview

iPhone Camera Subview

When calling the camera, what is the subview layer? I am trying to bring the camera view and its controls to the top of the views....because I am still trying to solve the UIToolbar at the bottom of my view hiding the camera controls. Any other suggestions or code would be appreciated. ...

How can i go from a mapview to a simple view

I am working on an app in which the starting point is a map and it has a button too. What i want is that if user clicks the button it will take him to another view which just have two or three buttons or other elements. Please provide me with detail answer so that i would be able to do it. Thanks in advance, i would really appreciate i...

How to add subview to a webview so that the subview would scroll along with webview?

I have webview. Now I want to add a subview to it. I added it using addsubview method. The view got added, but did not scrolled with webview. I want my subview to be scrolled with the webview. How can I do that? Regards, Akshay. ...

Mixing Objective C and C in switch statement trying to add a subview iphone SDK

I'm experiencing a weird problem. I have a for loop, inside the loop there is a switch statement. The counter in the for loop is a pointer that points to the beginning of a primitive array, it increments itself till it finds a "terminator number". The array pointed is used to build a view, each elements represent a subview to put in the ...

UITableView: programmatically set the data source

In my iPhone app I have a UIViewController that has a UITableView and another UIView, in its xib file, the view of the xib contains both the UITableView and the other UIView. Both view are linked as IBOutlets to the appropriate views in the xib file. When I want to set the data source programmatically for the UITableView I create a metho...

UIButton with UIImageView subview to show animated images

Hi, I'm trying to create a button which displays animated images. I read in this post the suggestion that I add an UIImageView (with an array of animationImages) as a subview of the UIButton. I tried to do this like so: (animation1 is a UIImageView object declared in the header) - (void)viewDidLoad { UIImage *image1 = [UIImage imageNam...

Creating a transparent UIView behind a subview on iPhone

Question regarding layer two bitmaps on top of each other, one of which is semi-transparent. I have a custom UIView called foo. I have two CGBitmapContext's I have created. They are effectively being used as offscreen buffers and are of equal rectangular dimensions. I want to take the two of these offscreen and layer them one on top of ...

how to renew subviews?

Hello, I want to renew a subview which is created like this: CGRect keyLabelRect = CGRectMake(2, [heightofrow intValue]*i, [breitescroller2 intValue]-2,[heightofrow intValue]); UILabel *keyLabel = [[UILabel alloc] initWithFrame:keyLabelRect]; [Inhalt1 addSubview: keyLabel]; [keyLabel release]; By calling a method, "breitescroller2" g...

iPhone - Accessing superviews methods?

So essentially I'm inserting "startViewController" into "mainViewController" now of course I can access startViewControllers methods from mainViewController but I was wondering how to do the opposite? Occasionally startViewController will need to call something in mainViewController and I was just wondering how I do this? Thanks in adva...

Opposite of bringSubviewToFront?

As well as wanting a view to be on top of everything, you might want a view to be below everything, but there is no bringSubviewToBack:. Why not and how do I bring a subview to back? ...

How do I use multiple views in my iPad app?

I am trying to build an fairly simple iPad app that requires me to navigate through multiple views. What I want to do is have some sort of main menu view with multiple buttons on it, and when you click one of the buttons the new view appears and then you work with that. I'm new to iPad development, so I have a few questions about the b...

iPhone: Add "loading" subView

I am wanting to show a simple loading dialog when certain things are happening in my app. I figured I would just create a new view, add a label to that, and then set that view to a subView of my current view. When doing this, I don't see anything! Here is how I am writing my method: - (void)showLoading { UIView *loading = [[UIV...

releasing and reallocating a viewController?

Hi Forum I have a viewController that gets added to the current view like this: theDetail = [[detailController alloc] initWithNibName:@"detail" bundle:[NSBundle mainBundle]]; [self.view addSubview:theDetail.view]; Now - when the user closes this new view, I remove it from the superview. The User might hit the button to show this vi...

UITableView as a subview?

Is this possible? I just want a small table in my current view... here is what I'm trying to do: .h file #import <UIKit/UIKit.h> @interface IngredientsRootView : UIViewController <UITableViewDelegate, UITableViewDataSource> { UITableView *ingredientsTable; } @property (nonatomic, retain) UITableView *ingredientsTable; @end .m fi...

How can I add a subview to the contentView of UITableViewCell that is not clipped by its superviews?

Hi everyone at stackoverflow.com! Can you help me? I would like to achieve the following graphical effect: Each cell of my UITableView (which has a ~10 pixel decoration frame) has a "badge" in the upper right corner (showing a number), but to make it look a little nicer, this badge should not be inside the cell, but should overlap the u...

UIView Subview Does not autoresize on orientation change

In my iPhone app, I have a view controller with two views (essentially, a front & back view). The front view is the main UIView, and the back view is a secondary UIView which is added as a subview using [self.view addSubview:backView] when showing the back and [backView removeFromSuperview] when hiding it. However, when the orientation c...

UIView subview is not autorotating or auto-sizing for iPad

In my iPhone app, I have a UIViewController with two subviews: a main UIView (let's call it mainView), and a secondary UIView (let's call it secondView), which is usually hidden but is sometimes shown (e.g. user settings). In my UIViewController, self.view is set to mainView. When the user switches to the subview, I call [self.view addSu...

Can a UISplitViewController be a tab within UITabViewController?

Can I UISplitViewController be a tab within a UITabViewController. I tried creating a new NIB with the Split View Controller configuration. And added the tab with UISplitViewController as the type to my mainwindow nib. I specified the NIB for the UISplitViewController. Nothing happened. Can I use IB to link the UISplitViewController de...

iPhone SDK Wrong SubView gets loaded

I have created a recipe app, it consists of 3 layer of a navigation controller. Layer 1 a list of recipes Layer 2 the recipe layer 3 the method Layer 2 lists the recipe items you need to create the dish and when you rotate it, it shows a subview with a larger version of the recipe (in a table). Layer 3 lists the steps required to make ...

How to update or reset a UIView with a custom subview?

Hey everyone, I have a UIView in a UIViewController to which I add a custom subview in the viewDidAppear method. MyView *myView = [[MyView alloc] initWithLabelText:text]; [self.view addSubview:myView]; [myView release]; The text variable is a string used on a label in myView. This text changes every time you come back to the current ...