universal-binary

AdMob with ios.4

i am getting lots of error. it works with ios 3.0 when i am using the Ad-mob with ios 4 can anybody give me the proper guidance,link or tutorial for Ad-Mob with ios4. ...

Share NSUserDefaults in universal binary between iPhone and iPad Versions

This is my first stab at creating two targets within one project for iPhone and iPad. My question is, if I save an array to NSUserDefaults, and the iPhone syncs with iTunes, and then I sync the iPad, will the iPad version have access to the array synced to it? ...

Universal App won't run on iPad Simulator

I have an existing iPhone app that I'm trying to convert into a universal app for both iPhone and iPad. Everything seems to work fine when I run it on an iPad device, but I get the following runtime error when I try to run in the iPad simulator: dyld: Symbol not found: _CFXMLNodeGetInfoPtr Referenced from: /System/Library/Frameworks/S...

problem in displaying a xib as Ipad in universal application

Hi all, I have an already running iphone app with target OS 3.1. I am trying to transform it into a universal app. I am not going to change the model, only the xib. So I wrote the ipad xib in IB, then I went to info.plist and add MainIpad Nib for ipad pointing to a proper MainIpad.xib. I also set Target Device Family in project info to ...

convert ipad app to run on iphone (universal app)

Hi guys - I have a working iPad app which I now need to make work on iPhone. I've been reading around a fair bit on this, but haven't found a good answer. On this site, I saw some discussion... but again, no definite answers. Does anyone know of any tutorials? I have captured in my code whether it's an ipad or not - so it's all ready -...

How to make a universal app (iPad and iphone 4.1) runs on iPod 3.1.3

I am building a universal for iphone/ipad and I already set the deployment target to 3.0. It can run well on iPad 3.2 and iphone 4.1. However, when I build and run it on my iPod 3.1.3, the runtime automatically picks the iPad code path and tell me that it cannot find UIPopOverController and UIMenuItem. In my iPhone path code, I don't use...

How to switch between different classes in an universal iPhone / iPad app?

I have a special class that manages gestures and other things. It is strongly targeted towards iPhone. On the iPad, I need a 90% different behavior of that class, so I want to split MyController into MyController_iPhone and MyController_iPad. How would I alloc-init the appropriate class depending on if it's the iPad or iPhone? ...

Aren't universal binaries a huge waste of memory on the device?

While working on an universal binary for iPhone / iPad, I've been asking my self often: Is this really so good? I believe the iPhone and iPod touch devices will simply download the whole package, including all the irrelevant iPad content. Since my app is graphics-heavy, the iPhone and iPod touch users would suffer from about 10 MB of irr...

Is it safe to check for UI_USER_INTERFACE_IDIOM() to determine if it's an iPhone or iPad?

I've found this code, here: if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) { str = [NSString stringWithString:@"Running as an iPad application"]; } else { str = [NSString stringWithString: @"Running as an iPhone/iPod touch application"]; } UIAlertView *alert = [[UIAlertView alloc...

How to install universal application in 2G iPhone

Hi, i have created an universal application using xcode 3.2.4. in my build setting i have set "target device" as 3.1.2. This application is working fine with iPhone 3G, iPhone 4 and iPod touch 3G. But i am facing "Unsigned" error if i try to install my universal application into my 2G iPhone which have iOS 3.1.3 I have included 2G iPhon...

Universal apps are not working right. Why?

Which part of the app is it that "triggers" the iPad app as it's own app as opposed to running the iPhone version in a universal binary? What do I need to change to make my app Universal, after clicking "Upgrade current Target for iPad"? My app runs on outside of the simulator, but my images are too small and my text is out of place. Wh...

Device-Specific Resources in iPhone

According to the iOS Reference Library: In iOS 4.0 and later, it is possible to mark individual resource files as usable only on a specific type of device. Does this mean that if you're creating an Universal app for 3.X devices, and the 3.2 iPad in particular, you can't use device-specific resources with the ~ipad and ~iphone...

iPhone/iPad - Facebook api for universal app

I know that facebook api works on iphone. I want to port my iphone app which has facebook api to Universal app so that it works on iPad as well. How can I achieve it? Is there any facebook api for universal apps or do I've to use two api's one for iphone and one for ipad. If I've to use them separately, how can I compile and build my app...

universal app -- Xcode keeps switching back to iPhone executable

I am working on a universal app. When I want to run it on the iPad simulator, I set the executable to the iPad version, and it runs on that simulator, no problem. But whenever I restart Xcode, or even just close and reopen the project, it switches back to the iPhone executable. I can switch it back again, but it's still annoying. Is ...

How to build universal static library that works for os3.x and os4.x

Hi I'm trying to create a static library that can added to any ios project, but I can only get it to work such that if I build the library in ios3, it'll work for ios3 projects but not ios4 and vice versa. The errors I get are: Undefined symbols: ".objc_class_name_UIImage", referenced from: literal-pointer@_OBJC@_cls_refs@UII...

How to build universal ios static library

Hi I'm trying to build a static library that I can use with both ios3.x and ios4.x. I can build a static library with ios3.0 that works with another project in ios3.0 but won't compile in ios4. The same is true going from ios4 to ios3. Here's how to recreate: Open XCode 3.2.4 and start a new project that's a Cocoa Touch Static Libra...

Universal app enlarge problem

I just want my app to run on both iPhone and iPad when it is running on iPad, the app only appear at the center of the screen. When user click on the enlarge button at right bottom corner like "2X" .the screen then turn into full screen mode I can achieve the above effect on my iPad by using Development provision, choosing Target Device...