ipad

problem with presentModalViewController

If my iPad is in Landscape mode and presentModalViewController is called the view automatically turns into portrait mode. Any solutions? UIViewController * start = [[UIViewController alloc]initWithNibName:@"SecondView" bundle:nil]; start.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal; start.modalPresentationStyle = UIModalP...

Multiple taps with UITapGestureRecognizer

I have attached 3 tap gesture recognizers to the same view - single, double and triple tap. However, a double tap results in the single and double tap selector being called and the same for a triple tap. I expected that UITapGestureRecognizer class would have handled this situation appropriately. Does multiple tap gestures require additi...

Trouble correctly formatting NSString for JSON.

Having a little trouble processing my NSStrings into a valid JSON string. NSString *version = @"1.1"; NSString *callMethod = @"auth.login"; NSString *paramsConfig = [NSString stringWithFormat:@"{\"email\":\"%@\",\"password\":\"%@\"}", usernameString, passwordString]; int queryId = arc4random()% 10000000; NSDictionary *us...

How do I resize my view in horizontal orientation?

In portrait orientation my view is 744px in height. I want to change this height when it is in landscape view. How can I do this? ...

How to collapse all methods in XCode?

Hi! This is simple: Does anybody knows how to collapse all methods in a class in XCode? Collapsing one by one is not an option anymore =D Thanks and have a nice day! ...

What are some reasons that application:didFinishLaunchingWithOptions method could get skipped?

My iPad app was working fine until I opened up IB and started editing the interface. Now, my application:didFinishLaunchingWithOptions isn't getting called. I understand it's an optional function and it gets skipped if it doesn't exist, but in my case it does. What are some reasons that application:didFinishLaunchingWithOptions method...

iPad: How to let a user write a hand-written note using a Pogo(like) stylus?

How could I let a user jot a quick hand-written note on an iPad using a Pogo-like stylus? (Or by using their finger, some kind of stylus makes it more legible feasible.) Initial thoughts: 1) Open GL canvas? 2) Store the output as a .png/.jpg snapshot of the openGL screen (by taking a screenhot of the iPad? 3) Would the note be limited ...

how to add Line-numbers to uitextview?

I want to add line-numbers to my uitextview. Do I have to write my own UI-Element? Or is there an other solition? Thanks for help! ...

Does Core Animation provide public APIs for iBook style page curl page transitions?

Does Core Animation provide public APIs for iBook style page curl page transitions? I have seen this blog post - http://bit.ly/dh5gxX - which is an almost exact re-engineering of iBook page-curl transitions but it relies on private APIs. Is there in fact a public version and if not is there something in open source? Thanks, Doug ...

Getting a tiled image collection on the iPad (Deep Zoom)

I have a set of tiled image collections created via Microsoft's Deep Zoom composer, and a Silverlight application that currently consumes them for display via MultiScaleImage - it's all working pretty well - I'd just like to get some experience with iPad programming and have a couple of ideas for some iPad applications. All my ideas rel...

iPad modal form sheet takes up the whole screen anyways

I'm trying to create a form sheet modal on iPad, which should be a 540x620 modal view. I've created a view controller with a NIB file whose view is a 540x620 sized UIView (with stuff on it). I set the modal presentation style to UIModalPresentationFormSheet, and call presentModalViewController:animated: on the current view controller. ...

How to change the SplitView from left,right to top,bottom on iPad?

I know that the SplitView is new to iPad, it split the screen with left and right. But I want to split the screen with top and bottom. How can I do so? thank u. ...

Core Data sync between iPhone and iPad

I have a universal iPhone/iPad application that uses Core Data as storage. I would like to enable users to sync their data between two devices(iPhone , iPod and iPad). Is there any sample application or code that performs this? ...

What is the UI element on iPad Photos App?

Please see the youtube: http://www.youtube.com/watch?v=FC95ARd96wI notice that the 0:35 , the iPad bottom have a thin photo bar. Is it a private API or I need to create my own or Which UI Element will it be? Thz. ...

MKMapView not centered on pin

Hi all, I have an mkmapview that i'm currently adding pins to, but for some reason when I call [mapView setRegion:[detailItem coordinateRegion] animated:YES]; the pin is off-centered (toward the right side of the screen) on the map. Here is the code for [deailItem coordinateRegion]: - (MKCoordinateRegion)coordinateRegion { MKCoord...

How can I programmatically add more than just one view object to my view controller?

I'm diving into iPhone OS development and I'm trying to understand how I can add multiple view objects to the "Left/Root" view of my SplitView iPad app. I've figured out how to programmatically add a TableView to that view based on the example code I found in Apple's online documentation... RootViewController.h @interface RootViewCont...

Core Location in iPhone Simulator 3.2 (iPad)

So, i'm trying to port my app to iPad. I'm using CoreLocation. Apple says the iPad does have Location: Wi-Fi Digital compass Assisted GPS (Wi-Fi + 3G model) Cellular (Wi-Fi + 3G model) so it should be possible to get the position of my ipad (at least with 3g model) about 3km radius would be enought. but it doesnt work in simulator ...

NSCoding Serialization of iPhone NavigationController stack.

EDIT: I seem to have found something that's helped. I retained the ivar "stack" and now it seems to be working I have been serializing several custom NSObject classes without issue. Now I'd like to serialize my NavigationController stack. Each viewController only needs a couple of properties saved in order to rebuild the navigation ...

iPad - Install and debug a 2nd version of an application without modifying the original

I have a paid application on the App Store. I would like to work on an update of the application. During development, I'd like install and debug the updated version without touching the original application installed on the device. I tried modifying the Bundle Identifier and when I choose to 'Build and Run' on the device, it installs a 2...

Problems persisting Core Data structures on iPhone/iPad

I have an iPhone/iPad app using Core Data to keep my application data. Sometimes, even though I don't get any error messages, the data is not really saved so when the app starts anew, it's all gone. This problem seems to disappear after physically rebooting the device, but otherwise it's pretty random and hard to track. Has anyone seen a...