uiview

Best Way to Perform Several Sequential UIView Animations?

I have a series of 8 UIView animations that occur directly after my view is loaded. Right now, I am accomplishing this by using the animationDidStop:finished:context delegate method, and everything works as expected. The problem is that I have a new method for each animation. Most of the code in each of these methods is repeated, with on...

Managing multiple UIViews from one UIViewController

I'm getting confused on view controllers and would love a straight example. Here's the preamble: I have a UIViewController with a matching .xib. By default IB gives me a single View in the Document window. I can make it appear by telling my UIWindow to addSubview:controller.view and bringSubviewToFront:controller.view Here's the questi...

Adding uiview to a uiviewcontroller

I'd like to add a 50x150 uiview that I will be using as a menu, and I want to overlay it on top of my uiviewcontroller. So far what I've done is declare a UIView IBOutlet in the UIViewController class file, and in that UIViewController xib file, I dragged a UIView from the library and hooked it up accordingly. Problem is its not showing ...

How can I use UIModalTransitionStylePartialCurl on a UIView that does NOT take up the whole screen?

In Apple's official Maps app for the iPhone, there is a small 'page curl' button in the lower-right corner. When you press it, the map itself peels back to reveal some options. I would like to duplicate this effect in my own app. I'm trying to use UIModalTransitionStylePartialCurl (Added in SDK 3.2). In terms of its layout, my app re...

UIView zoom and draw issue

Hi everyone! I have UIView wich have to be zoomed in After zooming i have to draw on this view and then zoom out. And certainly the zoom out picture have to include new drawing in proper size. So the question is -How can i zoom UIView (or maybe i should use UIImageView instead, then the question is how can i draw on UIImageView) -And...

Delegate of UIScrollView / Subviews

hi, can you help me setting up a delegate for a UIScrollView, so I can interact with it from within it's subviews? Following problem: I added some UIViewControllers (with extra nibs) to a UIScrollView. I want to control the ScrollView from within those subviews. E.g. I want to disable scrolling when I press a button. In another threa...

[Cocos2d] anchorpoint issues with CCUIViewWrapper

I am having some issues understanding and using anchorPoint. As I understand it, the default anchor is (.5,.5) which applies transforms about the center of objects. However, when I placed a UIButton into a CCUIViewWrapper, I noticed that scaling it would scale about the right side of the object (i.e. if I scaled from 0 to 1, it would g...

Removing all traces of a UIView

Heya folks! I've got another question. I've got this NavigationController, which has a delegate: MainViewController. In this navigation controller, there's a table view, which has the same delegate: MainViewController. Whenever I press a row in the table, a view pops up called: itemViewController. Now, this all works really great. But ...

Blinking UIView

Hi For my iPhone app I'm creating some rotating gears with the help of some subclassed UIViews. I have created subclasses that rotate themselves triggered by a timer. In one place I have one of these subclasses within another one (so rotation within rotation, think moon rotation around earth and it's own axle). It all rotates fine an...

UIView being retained

Hi, I'm having real problems tracking down why my UIView isn't deallocing. I have a UIViewController with several UIViews, all of which are IBOutlet properties that retain. I'm sure to release the UIView in the dealloc method of the UIViewController. However the dealloc of my UIView is never called. I have no idea what else has reta...

Pull Menu in CocoaTouch

Hi Everyone: I am attempting to make a UIView/UIControl that people can drag up and reveal a text box, and then drag down to hide it. However, I have yet to find a method to make this "fluid" - it always seems to stop at random places and doesn't allow any more movement. At the moment I am using a UIView for the top part of the view a...

How to get the Template Chooser/Document Browser view on iOS?

What is the view used to create the Template Chooser view in the iWork apps on iPad? How can I create a view like that on iPad, and what would be a best way to implement it on iPhone considering screen size constraints. ...

Best way to orchestrate multiple views in iOS without UITabBar or UINavigationBar?

I'm trying to create an iPhone app with a welcome screen that leads to two or three pretty disparate UIs; once you've drilled into one you're not going to have much use for the others, and each one is itself fairly complicated. The designers are all web types and it looks like the "navigation" paradigm is the closest to what they want, ...

Windows Phone 7 UI (Metro) possible on iOS?

How hard would be be to recreate Windows Phone 7 UI animations on an iOS device using UIKit? More specifically, making animated boxes gradually move from side-to-side, and appear in a chained manner. For example, windows phone 7 transitions here: http://www.youtube.com/watch?v=EUeNCzRhhDE At 0:30 - the parallax scrolling effect (relati...

UIView to cover iPhone status/carrier bar

I am attempting to create a UIView (and associated UIViewController) which mimic the behaviour of UIAlertView. Given my requirements it seemed much neater to create my own implementation from scratch than attempt to subclass and modify UIAlertView. In order to do this I am getting a reference to the app delegate and then adding the UIVie...

Initialize a UIView in high resolution for iPhone 4

Hi All, How can i init a uiview to be in high resolution (640x960) on iphone4? i tried to put a scaleFactor of 2.0 to the uiview but that did nothing also how can i test that the device the app is running on accept high resolution ie. it is an iphone 4 thanks in advance, Benoit ...

Programmatically getting the "Z" position of a UIView compared to it's siblings

My class has logic for inserting views in certain levels in the hierarchy. containerView = [[UIView alloc] init]; shadowView = [[UIView alloc] init]; contentView = [[UIView alloc init]; [containerView addSubview:shadowView]; [containerView insertSubview:contentView belowSubview:shadowView]; Later down the line, it flips them so the sh...

How to do calculations only for visible cells in iPhone?

Hi all, I have so many cells in table view say nearly 500. Each and every cells have their own images and string paragraphs. Actually i draw those images & strings with the help of UIView's drawRect method. So i need to calculate image and each string's position (including their width & height to measure the cell height and wrapping are...

uiview like actionsheet

Hi friends, Is it possible to show uiview like actionsheet on presentmodalviewcontroller(i.e. that is uiview should go top but it should not go fully and it should be half) so that i view the last view controller on screen. Thanks in advance. Regards, sathish ...

What is the use of removeFromSuperView in iphone?

Hi friends, In my program, if i put the below line in cellForRowAtIndexPath(Tableview), the scrolling is fine. Otherwise, the lines are crashed. I want to know what this code did? The code is.... for (UIView *oldViews in cell.contentView.subviews) { [oldViews removeFromSuperview]; } Thanks in advance ...