ipad-sdk

What are private APIs

What does Apple mean when they refer to private APIs? ...

Symbol not found: _OBJC_CLASS_$_UIPopoverController

Hi, I am having problems with my universal app. I have set the Base SDK to iPhone 3.2 and set the target to 3.1. I have moved the files that are using the UIPopoverController to their own files and they shouldn't be loaded when loading the app on the iPhone. Still, when I build my app I get the following error when I build and debug ...

how to disable parent view's user interaction - iPad

Hello All, I have added a sub view on the screen. Now I want to disable the parent view's user interation. But when i do this using - GenreShelfViewController *gsvc = (GenreShelfViewController *) parent; [gsvc.view setUserInteractionEnabled:FALSE]; [gsvc release]; (I am doing this in subview's viewDidLoad method) Sub view also free...

UIViewTableCell didSelectRowAtIndexPath is calling but not pushing a view controller

Hi guys, so im having a UIViewController view with a UITableView. So the UIViewController class name is SelectionScreen. The UITableView class name is SelectionScreenTable. Picture: http://img717.imageshack.us/i/screenshot20100609atpm0.png/ I have declared a UITableView *selectionTable in SelectionScreen class and connected it to the x...

Invalid receiver type for NSInteger

(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section { NSLog(@"bla %@", [section count]); return [possessions count]; } Does anyone know how to implement a simple NSLog because I am getting an error. ...

What is the correct position of braces or does it not matter

Possible Duplicate: Is there a best coding style for indentations (same line, next line)? I noticed in Objective C that xcode automatically uses a strange position of braces: if (statement) { } whereas I am used to using: if (statement) { } it just makes it easier to read. Is it a matter of preference or is a standard t...

how to get the maximum fps in ipad ?

I have developed a game for iPhone using coco2d 0.99.3. I want it to work on iPad. I have the new images which are bigger in size and resolution than iPhone images. Every thing is fine, but I got the fps problem. In iphone simulator I used to get 50 - 60 fps and even in iPhone device I used to get 50 above fps. But, in ipad simulat...

UIRotationGestureRecognizer minimum rotation value

Is it possible to set a minimum rotation value necessary for a UIRotationGestureRecognizer to transition into UIGestureRecognizerStateRecognized? I'm using multiple recognizers, and my UIRotationGestureRecognizer keeps getting called with a very small rotation (Between 1 and 15 degrees either direction) rather than my UIPinchGestureReco...

Application crashing in the iPad but working fine in iPad simulator.

Hi, I am writing a game in cocos2d. In the iPad Simulator the application is running good. While I am running the application in the iPad. But it was crashing by giving the following message in terminal. I am using 2048x2048 CCSpriteSheets in my code. I used instruments tool there is sudden increase in memory to 32MB before crashing. I...

Porting iPhone app to iPad fails to sign?

I am able to create a new application profile targeted for my iPad, however, when I convert from iPhone to "Universal" device, I am getting an error in signing. [BEROR]Code Sign error: a valid provisioning profile matching the application's Identifier 'rfc1034identifier' could not be found Also note: I am able to run it in the simulat...

Need some information about using cocos2d in iPad.

Hi, I need some information about using cocos2d in iPad. Can we use 2048x2048 sprite sheets ? I read in this form that we can use but with limitation not more than 3 or 4 sprite sheets. But, I have 10 animations in my game. maximum of 4 animations run at a time. Can we use the CCDirectors in AppDelegate in the same way as we use i...

What should I buy iPad or iPhone 4 for iPhone SDK 4 ?

Now, I'm developing on iPhone SDK3 and iPodTouch 2G. iPodTouch 2G can't do full function of iOS4. I want to change iPhone SDK4 development.In july, iPhone 4 and iPad will available in singapore. So, What should I buy iPad or iPhone 4 for iPhone SDK 4 ? What different between iPad API and iPhone 4 API ? How about market ? Can I write i...

How to switch versions of iPhone SDK?

Now that I installed SDK 3.2 for my iPad development, I need to build with the previous version for my old iTouch. Is this possible to switch or do I have to uninstall 3.2, install 3.1.x and re-install 3.2 in a "versioned" folder? ...

Bigger map annotation callouts in iPad

In iPad photos application, under "Places", you can see a map of where the photos are taken. When the user taps an annotation, a callout appears showing a stack of photos for that place. How can we achieve the same effect (bigger annotation callout with custom information) in our own iPad applications? Do we have to create a custom MKAn...

Show PDF in iPad using CGPDF APIs

I have learned Apple has release CGPDF APIs in SDK 3.2 for drawing PDF context. What I understand from these APIs is that you can draw a PDF to a data object or a PDF file. You can then export it, may be, to your sandbox's directory OR add as an attachment in the mail. But I am not sure if we can use these APIs to read a PDF from app...

Always center UIView

Hi, I have a small UIView that should appear always in the center of the screen. This works great for portrait mode but does not in landscape. To draw the UIView I use: myView.frame = CGRectMake((visibleArea.size.width - MY_VIEW_WIDTH) / 2, (visibleArea.size.height - MY_VIEW_HEIGHT) / 2, MY_VIEW_WIDTH, MY_VIEW_HEIGHT); myView.autoresi...

iphone: how do I obtain a list of all files with a given extension on the app's document folder?

I have saved all my files using something like this NSString *fileName = [NSString stringWithFormat:@"%@.plist", myName]; NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); NSString *documentsDirectory = [paths objectAtIndex:0]; NSString *appFile = [documentsDirectory stringByAppendingPath...

Drawing in iPad

Hi all, I am trying to draw custom shapes in iPad application. I am using UIBezierPath for drawing which is available for 3.2 onwards. My question is whether it is good to use this class or should I go to the core graphics? Is there any difference between uibezierpath and core graphics drawing related to performance? ...

How much memory an app can use on iPad?

Hi All, Currently I am writing an iPad app. I am using a lot of images in this app around 40 MB of images! This app works fine in simulator but crashing on device. I think the problem is with memory. I wanted to know how much memory I can use on iPad? Thanks Saurabh ...

Launching image picker is slow the first time

Is it normal for the imagepicker to take a while to load the photo album the first time and subsequent views are fast? ...