Are there any examples for how to integrate iAds into an application? - iphone

I'm looking for sample code or tutorials on how to implement iAds in my iPhone application. Can anyone guide me to any resources about this?

The iAd Programming Guide has detailed information on implementation.

In Interface Builder just drag and drop your ad into the window. In Xcode, right click on your frameworks folder and add the iAd.framework. It's really that simple.
For more advanced things, like hiding and rotating ads, you could start with the WWDC session videos if you're a registered developer. If you're not, get an account because it's a very nice program and you need it to get your apps published.
The session 112 video is a step-by-step, I used it to get my own iAds running, but otherwise try this link iAds. You still need a developer account.

Related

Adding desired Ads in iOS app

I am currently working on an app for iPhone which discourages smoking while portraying the hazards of smoking. I want to integrate ads in my app. During my research, i have come to know that iAds and Admobs are the two better choices. However, i want to display ads related to smoking (or smoking effects) only. How is it possible with any of these two? Is there any better alternative.
Regards
I think we can use content specific ads in any of the ad services for iOS. The ads come at random from the server of either of the ad networks. What you can do is put this question up to google or the specific service providers and see if they can give an appropriate solution. Most probably they would charge you for this .Its better you contact them using the following links
Google Admob Support
Or I can offer you a workaround if you want to specifically show those ads related to smoking . Make your own ads using popups and other methods and then show them in your app. Here you can add your own url and hyperlink to the sites you want .
Hope this helps :)
By doing some more search, i came up with this solution.
https://developers.google.com/mobile-ads-sdk/docs/search-ads-for-apps/

Three20 integration in iPhone

I am new for iPhone application development. I want to make an photo album application. But I don't know how to show images like slideshow in iPhone. After searching on internet I got an information about three20 open framework. So I want to know about how should I start with three20. I also downloaded the facebook source from github.
I also got some information that if we use some private API of three20 then our app won't be accepted for apple store.
so please guide me.
Thank you
Apple referred indirectly to the three20 framework in their last Developer Conference and stated it is not necessary to use third party frameworks for photo viewer style scrolling applications. Three20 is fantastic coding, but is now outdated and solves a problem that has since been resolved by Apple's standard library code (e.g. photo scroller with zoom - Indeed Apple claim there was never a problem in the first place, but that there was insufficient documentation for developers to know how to do photo scrolling efficiently). Unless you want to implement the other specific three20 features you are best off avoiding using it. Check out the developer conference videos on advanced scroll views.
The most relevant video is from WWDC 2010 - assuming you have iOS dev center membership, you can check this, which is the most relevant:
and look for the session "Designing apps with Scroll Views"
Also check this one may be of interest:
and look for the video session "Advanced ScrollView Techniques"
Also check out the video on paged scrolling from WWDC 2012.

MDM API Integration in iPhone

I am trying to do an enterprise application which need to list all the installed apps in iPhone and also should allow the user to delete some apps from current application.I know this is not possible using any direct API's.But I found that using MDM API's it is possible. I had gone through the documents about this in apple's website http://images.apple.com/iphone/business/docs/iPhone_OTA_Enrollment_Configuration.pdf
But I am not sure where I need to start. What are the steps I need to follow to access these APIs in the iPhone side. Do I need to perform all these steps programatically when I open the app or else these will be handled by server.
Please share your ideas about how to implement this from a developer point of view.
Thanks in advance.
Apps are not able to do any MDM, it can only be done by the server, that is managing the device.
Apple has a session video from WWDC 2010 that shows how this is done.

GestureRecognization like functionality for iPhone 3.1.3

Is there any way we can add the same functionality like Gesture recognization available for ios 4.0 + in iPhone 3.1.3
Please help with some links or codes available as i am unable to find it.
Also please inform is it really possible to do such smooth zoom+rotate in iphone 3.1.3
Thanks in advance
There is a way to do it, but you have to implement it all yourself. There was an example and some sample code of the "old" way to do it at WWDC. Go here to see the WWDC session videos and slides
Once you sign in and launch iTunes, click on "Application Framework" and check out session 120 - Simplify Touch Event Handling with Gesture Recognizers. Download the slides and video. There should be some sample code in there. Apparently there was a more in-depth example of this # the 2009 WWDC, but I wasn't there, but maybe you can find it on apple's developer site

How can I find tutorials for building an application that gets updates from an online website?

I want to build an application that gets updates from online websites like Twitter or Facebook. Currently, I haven't even got a clue on how to do this.
Also, in certain applications, like Doodle Jump, I have seen updates that pop up. Some other applications have a news section that gets updated often. How is it done? Any tutorial or working code will be very helpful.
There is a good tutorial I used to do this with ASP.NET.
I'm going to guess that you are interested in building an iPhone app. I don't know if you have any experience working with objective-c or the iPhone SDK, but here is a nice tutorial that touches on some of the concepts you will need.
http://icodeblog.com/2009/07/09/integrating-twitter-into-your-applications/