Re: Unable to add a subview above UIImageView.
Re: Unable to add a subview above UIImageView.
- Subject: Re: Unable to add a subview above UIImageView.
- From: David Duncan <email@hidden>
- Date: Wed, 30 Sep 2009 09:40:40 -0700
On Sep 29, 2009, at 8:34 PM, Lakshmie Narayan Viswanathan wrote:
I am new to iPhone programming and I am having a tough time to figure
out how things work. I have a MainWindow.xib where I have connected to
RootViewController. Now I added a UIView to the controller and then an
ImageView under it. I have another xib called Search which has a
UIview and two text fields under it. Search is connected to a
controller called SearchViewController (File owner). Now under the
RootViewController.m in the viewDidLoad method, I want to add a
subview on top of the view (which currently displays an Image). How do
I do this? insertSubView aboveSubView throws a warning irrespective
whatever I try to provide in the aboveSubView. addSubView seems to
add the view but I get a white screen.
This is a bug in Interface Builder. The best you can do is file a bug
requesting this, although if you do it would be marked as a duplicate
of <rdar://problem/6208093>. The only work around is to move the view
that you want to be a subview into the image view from code.
--
David Duncan
Apple DTS Animation and Printing
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden