uiview

Is it possible to move a UIView and not its subviews?

I have a UIPickerView added as a subview to my main view. I also have a series of textfields in the main view, so the picker view covers some up. So I was wondering if it is possible to move the main view (containing textfields) while the picker view (subview added to main view) remains stationary? ...

Vertical Slide Insertion for a UIView

hello, i have a ScrollView with Buttons. how to insert a view (which contains some informations) with a vertical slide down animation UNDER the selected button ? (and then disappear if clic "Done") I really don't know how to proceed. can you hellp me please ? thanks a lot ...

Action performed by UIViewController in UITabBar and Switched Back to Original View

In have a UITabBarController with 3 view controller subviews. The default subview for the app is viewOne (with viewControllerOne). The other two are viewTwo and viewThree with the ordering in the UITabBar as expected. My objective is to have an action be done when viewTwo is selected in the UITabBar while viewOne is active. The viewTwo...

exit a view on iPhone

how do i programmatically exit a view in an iPhone app ...

Detect touch on UIView with Interface Builder

How can I detect touches in a UIviewController for a UIView with code only (without Interface Builder)? I found the touchesBegan method but it doesn't get called ever. I didn't initialize anything else regarding this method. -(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event ...

UIView showing up in a UITableView section it was never added to when scrolling

I've got a UIView that I'm adding to a cell's content view in a particular section (Section 1 specifically), as shown below: [cell.contentView addSubview:self.overallCommentViewContainer]; When I quickly scroll up/down - the UIView appears in Section 0 - even though I never added the UIView to any of the cell's in Section 0. Here's a...

What works to pass touches through to (and display all) subviews?

I have the following subview chain: UIViewController.view -+ |-> UIView (subclass) -+ | +-> UIToolbar | +------------------------> UIWebView In the subclass, I override its -touchesEnded:forEvent: method in order to hide a...

iPhone: Multiple View (Screen) Management?

I'm curious what the best method is for managing the traversal through several views without burning screen space using a navigation bar. As an example, assume I have four UIView's with associated UIViewController's: 1: Top level menu (invokes A or B.1) 1.A: Menu selection A (return to 1) 1.B.1: Menu selection B, part 1 (invokes B....

iPhone + UIView. Enormous memory consumption during drawRect. Any strategies for reducing this?

My data visualization app incurs a large memory consumption spike during redraw (setNeedsDisplay which triggers drawRect). I am currently redrawing the entire view that houses the data plot. This view is much larger then the device display. Is there any way to tell CoreGraphics to allocate just enough memory to draw each element (each e...

How I force a "container" UIView to have no CALayer?

I am trying to conserve memory consumption in my visualization about. I have a scrollView with a containerView that contains some child views. I would like to eliminate the CALayer of the scrollView and containerView. So, just the child views consume memory during redraws, etc. How do I do this? Thanks, Doug ...

SubViews not properly initialized using IB

I'm having trouble getting my SubViews properly initialized using Interface Builder. I have the following View hierarchy (UIWindow -> BlankCanvasView -> StalkerView). BlankCanvasView is a subclass of UIView and StalkerView is a IBOutlet of BlankCanvasView @interface BlankCanvasView : UIView { IBOutlet UIView *stalker; } @end I've...

UITableView w/ Button Initiating with Wrong Parent

I am trying to place a "Dismiss" or "Done" button in the top right corner in a navigation control for a ModalView that closes the view. Using a normal UIView, I am able to do this. However, when I try to use a UITableView for my ModalView, I am no longer able to set the BarButton's target to a parent controller. The "dismissModalContro...

How to make a circular UIView

I want to make a UIView or UIImageView that is a circle. Or a circle that i can change the size of using a slider, and the color of with a pickerview. ...

chopping deadspace out of UIViewAnimationTransitionCurlUp?

I'd like to utilize UIViewAnimationTransitionCurlUp more often in my applications however it has a very annoying trait... namely that the first 20% to 35% of it is non-action... I know this is the case because I set an animation duration to 20 seconds to confirm my suspicions that the culprit wasn't simply setup time internal to [UIView]...

How do I translate parabolically?

I'm working on an iPhone app with some simple animation. I have a view I want to translate, but not along a line. I want to translate it parabolically. Imagine that I am animating a car moving along a curved road. I know I can set the transform properly to an instance of CGAffineTransform Problem is, I have no idea how to create the ...

how to invert transform a UIView?

Hi all, I am using core-plot library to draw a bar-chart on my iPhone application and the problem arises when I try to add a label or some other views to the graph, Actually the view I added is drawn vertically invert like this ........ The code is like UILabel *lbl= [[UILabel alloc] initWithFrame:CGRectMake(250, 90, 70, 25)]; [...

Resize and move a UIView with Core Animation (CAKeyFrameAnimation)

Is this possible? I can change the opacity and position (center) of the layer but whenever I try to change the size or origin, it doesn't work. CAAnimationGroup* anigroup = [CAAnimationGroup new]; CGMutablePathRef thePath = CGPathCreateMutable(); CGPathAddRect(thePath, NULL, CGRectMake(0,0, 320, 480)); CGPathAddRect(the...

How to resize the IPhone video to a specific dimension, and add some more features.

Hi everyone! Did anyone tried to resize an video, for adding more views around it? Can anyone give me any hint/recommendation? Thanks in advance! ...

how to restart the UIView animation

Hi, I am new to the objective c coding in iPhone. i am using below code in separate function to start the animation. [UIView beginAnimations:nil context:nil]; [UIView setAnimationDuration:10.0]; object.transform = CGAffineTransformMakeRotation(1.57); [UIView commitAnimations]; After this i am trying to restart the animation in one mo...

Captured UIView image has distorted colors (iPhone SDK)

Hi all, I'm using the UIGraphicsGetImageFromCurrentImageContext() function to capture the screen contents into an UIImage object (previously rendered into an Image context). This works great for both the simulator and a real device, however in the latter the resulting image has a few pixels with distorted colors, as seen here: Please...