About iAd in my application - iphone

thanks in advance.
I have created an application for iphone and am using iAd in that.If i am using ios with version 4.0 then the app crashing because of iAd. But is installing while executing in ios with version 4.1 and later. If any one know the reason please tell me.

This crash is due to iAd migration from iOS 4.0, 4.1 to iOS 4.2. The new sdk suggests using ADBannerContentSizeIdentifier320x50 with ADBannerContentSizeIdentifierPortrait. Its all ok if its working with 4.1 and above. Just mention to use ios 4.1 and above in your app.

Related

storyboards are unavailable on ios 4.3 and prior

i've developing the iphone application. i got a error when i run the application like "storyboards are unavailable on ios 4.3 and prior". i don't know how to resolve this so anyone guide me to resolve this.
My xcode is 4.3 version. My iphone is 2g.
Did you do ANY research on this question? Storyboards are only available in iOS SDK 5.0 and later.
If you build an application that is based on storyboards, you must choose 5.0 as the least supported iOS version on your build settings.
And vice versa, if you want to build your application for 4.3, you must not use storyboards.
There is already an answer here at iOS5 Storyboard error: Storyboards are unavailable on iOS 4.3 and prior
Storyboards are not supported for IOS 4.3.

How do I create an IiPhone/iPad app which targets iOS 4.3 and later?

I have created an app using Xcode 4.3 and iOS 5.0, but I recently found out I need to also support 4.3.x devices. I changed my Deployment target to 4.3, but then I got the infamous storyboard error:
Storyboards are unavailable on iOS 4.3 and prior
So, how do I create an app that targets both? I can get my app to build using the post here but then my app shows the launch screen and then goes blank.
You can't. Storyboard is only available on iOS 5.0 or higher.
If you want to support iOS 4.3 you need to remove all the storyboard code and go back to using not nib/viewcontroller way of building your UI.

developing ios 4.1 and deploying to ios 4.1 and above

I'm developed application with ios 4.1 sdk and I want to deploy to ios 4.1 OS and above OS iPhone and iPad.Is it possible?
Yes, it is possible, until the methods you have used are deprecated and removed in future OS.
Please have a look at the following link.
http://developer.apple.com/library/ios/#documentation/DeveloperTools/Conceptual/cross_development/Using/using.html#//apple_ref/doc/uid/20002000-SW6

How to work with iAds using xcode 3.1.3

Presently I am Working With Integrate iAds and make a lite version of the app. My Problem is Previously I am working with iAds is xcode 4.1.3 but Presently I was used xcode 3.1.3 iAds are not supporting what we do please help me.
NSString *contentSize = UIInterfaceOrientationIsPortrait(self.interfaceOrientation) ? ADBannerContentSizeIdentifier320x50 : ADBannerContentSizeIdentifier480x32;
This line error: ADBannerContentSizeidentifier320x50'undeclared(first use in this function)
First, even in the newest versions of iOS, ADBannerContentSizeidentifier320x50 is no longer the preferred constant. Use ADBannerContentSizeIdentifierPortrait instead.
But I think the real issue here is that Xcode 3.1.3 is too old to include the iAd framework. It was first included in iOS4 and so won't be there in anything older. Your choices therefore are:
Use a newer version of Xcode (and iOS)
Don't use iAds. There are other ad networks such as AdMob that still support older devices
Upgrade your SDK to the latest version.
You need at least iOS 4.0 if you want to use iAd. And I think Xcode 3.1.3 only includes the iPhone OS 3.0 SDK.
Time to upgrade to Snow Leopard?

iPhone 3.2 simulator

I'm working with a legacy app with a deployment target of 3.0. I have a crash being reported on iOS 3.1.3 for iPhone. In xcode 4 the only 3.x simulator I see listed is iPad 3.2
How do I test iOS 3.1.3 for iPhone?
See Install xCode 3.2.3 w/ iPhone SDK 4, get "Base SDK missing", can't see other SDKs for an extended discussion of this topic. Also, links to older Xcode and iOS SDK versions can be found at http://chris-fletcher.com/2010/08/28/howto-install-iphone-sdk-2-0-3-1-for-xcode-3-2/.
Buy a used iPhone or iPod Touch that has 3.1.3 installed and don't update the iOS on it. I have a 3G with 313, no cell service and just use it for testing on wifi. This is also useful to see check what the performance is like on a slower phone.
However, many 3.1.3 crashes are caused by using a 4.0 API call or object that is only in 4.0. You can find those problems on the 3.2 simulator.
It's not possible actually with Xcode4. If you can get old version of Xcode3.1 with iOS SDK 3.1 and install it side by side with Xcode4 then it may be possible.