uikit

Problem with Rotating a UIScrollview

Hey guys, I am having issues trying to get the pageControl sample code to work with rotation. I managed to get it to rotate but it does not visually load correctly until I start to scroll (then it works fine). Any Idea on how I can fix this problem? Here is a link to the project if you want to see it in action. This code is base...

Placement/Positioning/Alignment of UIScrollView w.r.t. length of Title NSString

I have a scenario where i show stuff like: ----------------------------------- titleview (UITextView) ______________ tArea (UIScrollView) ttextview (UITextView) ----------------------------------- Now here is the condition: Length of titleview's text is dynamic, varies based on ...

iPhone/iPad : Check for invalid characters in a textbox made for Integers only

I noticed that the iPhone OS is pretty good about picking out Integer values when asked to. Specifically, if you use NSString *stringName = @"6("; int number = [stringName intValue]; the iPhone OS will pick out the 6 and turn the variable number into 6. However, in more complex mistypes, this also makes the int variable 6: NSStrin...

Editing a UIViewController from another class.

I am trying to programmatically change the user interface of a UIViewController from another NSObject class. The problem is that I am unsure of how to access the UIViewController's view from the NSObject class. So for example, in my NSObject class, I say something like: self.view = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 320, 480...

How to cache text entered in the UITextField?

I have a requirement where i need to enter a text in the text field and when i come out of the view and again open the same view where text field is present, i need the text entered earlier need to appear on the textfield(caching) before the user enters the text for the second time.. Please help me.. ...

What message will UIViewController will receive when a the iPhone receive a telephone call?

What message will UIViewController will receive when a the iPhone receive a telephone call? ...

UIScrollView setZoomScale not working ?

Hi, I am struggeling with my UIScrollview to get it to zoom-in the underlying UIImageView. In my view controller I set - (UIView *)viewForZoomingInScrollView:(UIScrollView *)scrollView { return myImageView; } In the viewDidLoad method I try to set the zoomScale to 2 as follows (note the UIImageView and Image is set in Interface Bui...

What's a good way to create an Event Calendar

Hi, I want to create an Event Calendar for my iPhone App. In a first instance the Event Calendar is supposed to list the Events and have a Details View with additional info. It is also supposed to contain an action to trasfer a specific event to the iPhone Calendar. First thoughts go towards using a UITableView where I make the event da...

Buttons inside of a Pop Over Controller on the iPad

I am attempting to create a popover similar to this in an iPad app. Does anybody know if there is a built in way to do this? Is it a UISegmentedControl inside of a UIPopoverController? ...

CAKeyframeAnimation - Examples

I have a a menu that is a CALayer that will slide across the screen to a given point. I want the effect where the menu will go a little past the point, then a little before the point, and then land on the point. I can move the menu by applying a transform, but I was hoping to get this bouncing effect to work. I was looking into CAKeyf...

URL or email address as link in UILabel

Hi, I have a UILabel tha contains a URL (ie www.google.com). Is there a way to display the label as URL so the User can tap on the URL for Safari to open it? Same question I have for a mailto item (ie [email protected]) to open mail with a new email to that address thanks in advance ...

UISplitViewController and complex view heirarchy

I'm doing an iPad tech demo and I'm running into a serious technical problem. I have an app concept that leverages UISplitViewController, but NOT as the primary controller for the entire app. The app flow could be described roughly as this: Home screen (UIViewController) List->Detail "Catalog" (UISplitViewController) Super Detail Scre...

Issue with CAAnimation and CALayer Transforms

I have a CALayer that I want to animate across the screen. I have created two methods: one slide open the layer and one to slide close. These both work by assigning a property to the layer's transform property. Now I want to use a CAKeyFrameAnimation to slide open the layer. I got this working so the layer slides open, but now I can'...

What could cause a button on a UIActionSheet to "miss" on touches?

I have a UIActionSheet as follows: UIActionSheet *sheet = [[UIActionSheet alloc] initWithTitle:[NSString stringWithFormat: @"Cancel New %@? Changes will be lost.", [creator propertyName]] delegate:self cancelButtonTitle:@"Stay Here" destructiveButtonTitle:@"Discard and Close" otherButtonTitles:@"Save and Close", nil]; [sheet showInView:...

Background problem on UITableView

Hi ! I have come to a problem, wich I have no idea how to solve. Can anyone think outside the box and point me to right directions? I would be very thankfull ! The problem. I have a UITableView containing a first row wich is always the same (a empty row with repeating background) Next rows are bounch of dynamic data rows. I have ...

What iPhone OS APIs could I use to implement a transition animation similar to the iBook page flip transition?

I'm building an iPad app that will have multiple paper pages and I'd like to implement a page transition affect that is similar to the animation you see when you turn pages in the iBooks app on the iPad. A few questions... Is that animation readily available somewhere in the UIKit API or would I have to implement it myself? If I have ...

Landscape Mode ONLY for iPhone or iPad

I want to create an application that doesn't use Portrait mode. I am not sure if I need to edit the plist or have code in addition to the plist ...

Landscape Mode: Flip image when you flip your iPad

Apple demonstrated Photo's for the iPad. In their demo, they said you can Flip the iPad and it flips the image. How is this result achieved? I've been reading about UIInterfaceOrientation all day and I'm lost Any help would be appreciated. - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { U...

UIDatePicker locale does nothing?

I'm creating a UIDatePicker programmatically, and setting its locale with the following code: datePicker.locale = [[[NSLocale alloc] initWithLocaleIdentifier:@"es_ES"] autorelease]; The datepicker still appears in English (or whatever language I've set the phone to). Anyone have any idea why this does nothing, or how to fix it? ...

UINavigationController creating a blank view out of thin air?

Ok, this one is really weird... I can't show code for it exactly cause it follows a pretty snake-like pattern through subclasses etc, there would be a pile of it. The important parts are that I push a view controller, which during viewWillAppear pushes another view controller onto the nav controller. My nav controller is an item in a t...