uiview

How to display Two tables on a UI view

Hi there, I would like to use and display two tables on a UI view. Please let me know how to do this. Any code same will also be appreciated. Thanks, Sandeep ...

Convert coordinates between parent/child UIView after CGAffineTransform

Hi Before I go into doing everything by hand I would like to ask if there is some help to get from the framework. I have a UIView that holds another UIView with a map. The parent UIView holds some legends for the map. Initially I define some coordinates in the map view. e.g. (100, 40), and place a piece of graphics there in the parent ...

How to cover also the UIStatusBar with UIView when i cover all the screen with the UIView? (iPhone)

How to cover also the UIStatusBar with UIView when i cover all the screen with the UIView? thank guys. ...

iphone uiview circle?

Newbie Q. I wish to subclass a UIView so that it renders a circle. How is that done in an iPhone? ...

iphone drow shadow on circle

I have a simple circle drawn in my sub classed uiview as below. How do I add a slight drowshadow on the bottom of the circe? - (void)drawRect:(CGRect)rect { CGContextRef ctx = UIGraphicsGetCurrentContext(); UIGraphicsPushContext(ctx); CGContextSetRGBFillColor(ctx, 1.0f, 1.0f, 1.0f, 1.0f); // white color CGContex...

iPhone Adding Sub View dynamically

Newbie Q. In my MainViewController, which is the first visible view. I have a Circle class (no XIB) which subclasses UIView and overrides the draw method to draw a circle. Hello-World simple. In the MainViewController how do I add the custom class I wrote so that it appears programatically? Do I need to do anything besides overriding...

iphone autorotation black background

I use OpenGLView to display content of my app but sometimes I have to display UIActionSheet. My application works on both - landscape and portrait mode - but since it's OpenGL view I handle rotation of the view by myself so to display UIActionSheet I use empty view and add actionsheet to it. the problem is that when I use shouldAutorotat...

UIView Overgive Value

Hello, when calling another UIView how can I send a value: ServerSelect *neu =[[ServerSelect alloc] initWithNibName:nil bundle:nil]; [self presentModalViewController:neu animated:NO]; to this view? Andreas ...

Problems creating a custom UIView

I'm trying to create my own UIView subclass. I've placed it on my view in Interface Builder by dragging out a UIView, then specifying my subclass's name in the Class Identity field. Yet my UIView does not draw itself. Here--in a simplified example--is the code in my UIView subclass: - (id)initWithCoder:(NSCoder *)aDecoder { if (sel...

Smooth scaling when adding/removing subviews to/from a UIView

I'm using a subclass of a UIView to (programmatically) contain and manage numerous subviews (mostly UIImageViews) that are to be positioned adjacent to each other such that none are overlapping. It's safe to assume that the subviews are all the same height (when originally drawn), but are varying widths. The container might be resized,...

iPhone presentModalViewController touch works on a small part of the view

Hi, I have a small imageview that is above my main view (it's 50 high)and when i touch it i use presentModalViewController to push a newView controller. The problem is that when the view controller is presented i can see the entire view, but touches works only on the same frame as the imageview. Wich means that when i tap on the naviga...

UIWindows or UIViews

I need three different sections in my app: a login screen, a main screen, and one that takes place in landscape mode, all totally different. I saw Apple insists that an app should have one window, so I'm asking: what would be best to use for this? Three big windows, or views? And how should the hierarchy look like? I don't have experienc...

Flickering animation with UIViewAnimationTransitionFlip

I have a containerview with 2 subviews. I want to flip from one to another. The problem is that some kind of flickering appears. It doesn't happen on the iPhone 3GS, but on the Simulator and the iPhone 3G: http://www.hanspinckaers.com/upload/Flickering.png Does anyone know why this happens? This is the code: [UIView beginAnimations:ni...

Wizard style of interface in iPhone

How would one implement a wizard style interface for the iPhone? For instance I have a form that I would like to break down into 5 different pages or views instead of putting all the information to fill out into one page or view. This interface must have the ability to go prev or next in case they want to change something on page 2...

Loading .xib's into a UIView

Hi, I have a UIViewController with its own .xib, and I want to use a UISegmentedControl to display different information on the bottom half of the screen. I created a UIView in the container's .xib and connected it to a UIView property called detailView in the container's UIViewController. I then created three .xib files in IB, one fo...

UIView & Graphics Context

The UIView class does not set a graphics context, so when I go to get the current context, it comes back as nil. I'm in a method subclassed off of UIView, how may I get the graphics context to be able to simply draw a line? Very new at the x-code game. Any help would be appreciated. ...

viewing tableViewLines on background of custom UIView

I have a viewController that has a tableView and a custom loading UIView that displays a loading message and spinner while the data of the tableView is being loaded. The custom UIView has a red background that i can see, but i can still see the lines of the tableView, How can i get to display the custom uiview without seeing the tableVi...

UIView subclass won't autoresize.

I've been looking for background information on resizing, but I haven't been able to find much. I know I need to set autoresizesSubviews on the superview and autoresizingMask on the subview. I have done this, and my UIImageViews properly resize, but my custom UIView subclass does not. The code for the UIImageView: UIImageView *newX = ...

iPhone addSubview overlays the whole view

Hi all, I've created a .xib file and added a UIView to it in IB that I've called detailView. I need to load a .xib into the detailView area, and here is the code I'm using in my view controller to do so: NSArray *nibObjects = [[NSBundle mainBundle] loadNibNamed:@"DetailView" owner:s...

uiview getter nil

I am trying to get certain iVars from my view controller to my view (a subview) so drawrect will draw a shape based on user inputs. When I hard code those variables into the subview, the shape draws perfect, but when I use getters to access the custom variables from the view controller, they come back nil and the drawing is messed up. ...