uiview

When are dynamically loaded NIBs assigned frames and bounds data?

In one of my UIViewControllers, I am calling initWithNibName:bundle: for several other UIViewControllers. I am grabbing the view property in each of those dynamically created controllers and placing them, one after the other, in my parent view. For instance, the y offset of viewControllerB should be equal to the height of viewControllerA...

Implementing scroll view that is much larger than the screen view with random images

What I'm trying to do is to implement something like the fruit machine scroll view. Basically I have a sequence of images (randomly generated on the fly) and I want to allow the users to scroll through this line. There can fit approx 10 images on the screen, but the line is virtually unlimited. My question is what would be the best appr...

How do I get a CGAffineTransformMakeScale to shrink a view around its center?

This should be an easy one -- when I use a CGAffineTransformMakeScale on a UIView with width and height = 0.5, it shrinks to the upper left. I need it to shrink around its center. What do I need to do? Thanks! ...

Drawing gradients on a UIView doesn't work on subsequent calls to drawRect:

I'm trying to debug an issue that is really stumping me. Basically, I have a UIView subclass that draws a gradient to itself in drawRect: based on colors that i provide in the init method. The problem occurs when the view draws itself again. If i call setNeedsDisplay on the view, or if say the view is removed due to an out of memory w...

How to have a UIView on top of TabBar?

How can I get my UIPickerView to apear on top of the TabBar? http://bit.ly/aSFKYY This is a TabBar Application and that NIB file contain 2 views That I animate to show / hide instead of the keyboard, but the keyboard animates on top of all UIViews. How can I accomplish this with my Custom View? ...

Is there any way to improve UIView beginAnimations/commitAnimations performance?

I am resizing a control via [UIView beginAnimations] [self setTransform:CGAffineTransformMakeScale(0.5f, 0.5f)]; [UIView commitAnimations] The animation looks beautiful on the iPhone simulator but on my 2G test device it is unbearably slow and choppy. How can I improve the animation on an older iPhone? Or do I have to disable animat...

Recreating iPhone stock application with nested views

I am trying to create an app similar to the Yahoo Stocks app that comes on the iPhone, with the split-screen interface (table on the top, graph on the bottom). I'm struggling with the view hierarchy. What is the easiest way to implement a split-screen type of application. I basically want two views nested in a parent view. My proble...

UIView coordinate transforms on rotation during keyboard appearance

iPad app; I'm trying to resize my view when the keyboard appears. It amounts to calling this code at appropriate times: CGRect adjustedFrame = self.frame; adjustedFrame.size.height -= keyboardFrame.size.height; [self setFrame:adjustedFrame]; Using this technique for a view contained in a uisplitview-based app works in all 4 orien...

Implementing touch-based rotation in cocoa touch

I am wondering what is the best way to implement rotation-based dragging movements in my iPhone application. I have a UIView that I wish to rotate around its centre, when the users finger is touch the view and they move it. Think of it like a dial that needs to be adjusted with the finger. The basic question comes down to: 1) Should ...

iPhone loading view from nib only works once

Hi Forum I'm trying to add a «loader-view» to my app which shows a spinner while doing stuff. This works fine the first time, but it doesn't work a second time. here's what I do: I have a viewController for the spinner (spinnerViewController) and a nib-file which I made in IB (spinner.xib). I load the nib in the viewDidLoad-event: ...

Iphone SDK - adding UITableView to UIView

Hi, I am trying to learn how to use different views, for this sample test app, i have a login page, upon successful logon, the user is redirected to a table view and then upon selection of an item in the table view, the user is directed to a third page showing details of the item. the first page works just fine, but the problem occurs ...

Transparent UIView like photo gallery app in iphone

The default camera app has a photo gallery which has glossy and transparent look, especially the toolbar. One can see the image partially behind the toolbar. How is this achieved? Is it just by altering the opaque property of UIView? Any pointers are much appreciated. ...

iPhone multi view/window switch

I've now put all night and tried to get my iPhone program to perform as intended, it has also succeed me sometimes but now I have pages with a problem I simplehen can not get resolved. 've tried this video guide that makes it I want it to but I stare my project up with NSObject (Windows Based) for my program. Has anyone any. can help m...

viewWithTag and retreiving views deep within the heirarchy

if i have the following view heirarchy UIView --- top level view --UIButton --UIView ----UILabel ----UILabel -- tag = 1 how do I get UILabel with tag 1 from a reference from the top level view? ...

How to tell whether on sub-view's is above another sub-view?

Assume there are 3 sub-views (A, B, C) in a view. After a few rounds of random bringSubviewToFront and sendSubviewToBack on A, B, or C , how can I tell whether one sub-view (e.g. A) is on top of another sub-view (e.g. C)? Whether they overlap each other is not required information. Thanks! ...

Detect if certain UIView was touched amongst other UIViews

HI Guys, Sorry if this has been answered elsewhere but I can't seem to get it to work. I have 3 UIViews, layered on top of one large uiview. I want to know if the user touches the top one and not care about the other ones. I will have a couple of buttons in the second UIView and a UITable in the 3rd UIView. Problem is I turn userInte...

CoverFlow using UIVIews

I am trying to implement "CoverFlow" in iPhone referring http://www.chaosinmotion.com/flowcover.m . But what I actually want is a coverflow of UIViews, and not images. ie, I want my coverflow to contain controls like UIViews and not static images. Is this possible ? Please help ... Thanx in advance. ...

How can I change the background image view transparency image?

It is the code: self.view.backgroundColor= [[UIColor alloc] initWithPatternImage:[UIImage imageNamed:@"yourimage.png"]]; My "yourimage.png" have some space that is transparency. But it shows me it becomes black. How can I change it to show the transparency instead of black color? thz. ...

Is there an open source UIView subclass for creating multiple, dynamic tabs in the iPhone (iPad) SDK?

Is there an open source UIView component that supports multiple, dynamic tabbed views for the iPhone (iPad) SDK? I see several apps in the iPad App Store which utilize tabs, one such example is the Atomic Web Browser which provides a tabbed browsing experience (like Safari on the Mac or Firefox). Instead of reinventing this functionality...

UIView animation

I have a UIView(first view) on top of which I would like to display another UIView(second view). I display the second view using animation which causes the second view to be displayed for about 3/4 of the iPhone screen. The first view is visible underneath the animated second view. I would like to make changes to the first view as the se...