uiview

How to enable user interaction on UITableViewCell contentView while in edit mode?

Is it possible to enable user interaction on the contentView while in edit mode? ...

iPhone View Animation plays 2 ways on Simulator, only 1 way on Device...

Hi all, I have an odd question here. I have two animations set up for a simple page flip. I then have a button that randomly generates a 1 or a 0. If the number is 0 then it performs one animation, if its 1 it performs another. The issues I'm seeing is that this all runs fine on the simulator, but on the device it doesn't perform the an...

How to create layer that floats above the tabbarcontroller on the iphone.

'lo all. I am in the ending portion of my app for the iPhone and found that I am in a section of the app where I want to give feedback about the status of some background process running (location manager accuracy) and want to place it in the lower left of the screen. This can tell a user how "sure" we are about the given search resu...

UIView background Color

Hi, I am trying to create a grid view by using a UITableView (my older questions have pointed me in this direction) and am currently setting up the views for the individual items. Having created a custom UITableViewCell that displays 3 items per row, I have decided to pull these items into a subclass of UIView called ItemView. This Ite...

iPhone Swapping out content of UIView/Sub view

I'm trying to accomplish the following: Swap out the content of a UIView or Subview using UIButtons or a toolbar. I have a view laid out like the illustration below. I want to swap out the content of the "UIView to swap" sub view by clicking on buttons or buttons on a toolbar. So you click button 1 and a view is loaded into the "UIView...

How do I add a UINavigationController to a view in code?

view1 = [[View1 alloc] init]; //Create the first view UINavigationController *navigationController1 = [[UINavigationController alloc] initWithRootViewController:view1]; navigationController1.navigationBar.tintColor =[UIColor blackColor]; View1 is inherit from UIViewController. So I create a *view1, then I create a UINavigationControl...

Memory leak when subclassing UIView

Hi All, I have a memory leak when just using subclass of UIView. It leaks 128 bytes and goes all the way to down thru CoreGraphics etc. My subclass is just a generated skeleton without anything in it. When I use just UIView instead of ScrollView no leak are reported. What could it be and what I am missing? Thanks a lot, ALex. ========...

Should I import UIKit in every file I code?

I'm coding for the iPhone and wondering if I need to include UIKit in every file that code or is there a better rule as to when to do so and when you don't have to? Thanks! ...

Would it be ok to make an X in the upper right hand corner of a UIView to cancel out of the view?

I have a UIView that I don't want to have a navigation bar. It is a modal view. Would it be ok for me to make an custom UIButton shaped like an X to get out of it? Would Apple care? Is there a better way? ...

Decide in code which class and xib file to load on app launch

Hello, I'm changing my app to add an in app purchase. When I initially set up the app I used interface builder but now i need to decide which class & xib file to load on app launch based on whether or not a user has purchased a feature. My app is set up with a tab bar controller that has a naviagion controller for each tab. Inside ...

How to know when UIView becomes completely hidden?

I am switching between two views by toggling hidden attributes. How would I know when one view gets hidden and/or visible? Tried setting break points into viewDidLoad, viewDidUnload, viewWillAppear, viewWillDisappear, viewDidDisappear, becomeFirstResponder and resignFirstResponder. Nothing. None of those are called, when I set hidden = ...

UITouch UIWebview make active if disabled.

I have 4 UIviews (not overlapping), one active, and 3 not enabled. I want to set one of the 3 non-enabled views to active by a touch, I thought touchesBegan: but it doesn't work. any ideas? will this work with uiwebviews as well? ...

is it possible to draw uiview over quicktime player?

is it possible? any idea ...

CATiledLayer drawing crash

in my application I use have the following views hierarchy: UIView ----UIScrollView --------TiledView (UIView subclass, uses CATiledLayer for drawing) ----OverlayView (UIView subclass) In short - TiledView displays large tiled image I also apply custom rotation to that view: tiledView.transform = CGAffineTransformMakeRotation(angle);...

Setting animationDidStopSelector: on UIView's animation delegate

I think I've been doing this wrong for the past year and a half of my iPhone development experience... I could use some knowledgeable clarification please! As you may or may not know, UIView properties can be animated quite easily using the beginAnimations:forContext: method, and wrap it up with a commitAnimations call. You can also se...

Structuring a multi-subview (more than two) iphone app

There are many examples available for apps that switch between just two subviews, but what I am trying to do is set an app that lets me switch between more than 2, such that I'm thinking I need to keep an array of UIViews. The underlying application is to allow the user to page through a list of subviews, forwards or backwards, much l...

UIView border with fade or blur effect

Hi everyone! I'm looking for method to add gradually fading or maybe blured border (I don't exactly know how to name this effect) to arbitrary UIView. I don't need animated effect, I need static effect, for example I my UITableView border being partially transparent. I've made the example: http://i46.tinypic.com/14nz76f.png, so you can...

UIView addSubview: method error problem

Hello, I have the code to add a view [self.view addSubview:RootViewController.view] and it gives me the error error: accessing unknown 'view' class method here is a bunch more stuff that might be helpful. CompileC build/iTracker.build/Debug-iphoneos/iTracker.build/Objects-normal/armv6/NewLogViewController.o Classes/NewLogViewController...

How do you rotate a Polygon in an UIView without rotating the background

The following code: http://pastie.org/pastes/835022 in a custom UIView rotates the entire view including the gradient background. What is the proper way to rotate the polygon without rotating the background? ...

UIView with rounded rectangle and drop shadow: shadow appears above rectangle

I've got a uiview subclass where I'm trying to draw a rounded rectangle with a drop shadow. Though it draws both elements, I can see shadow through the rounded rectangle fill. I'm new to CG so I'm probably missing something simple (though it doesn't seem to be the alpha of the fill which is set to 1). Here's the draw rect code. - (vo...