Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

roeik

macrumors member
Original poster
Dec 25, 2008
80
0
hi,

I was wondering if anybody know if there is a cut-and-paste code that I can put in my app to display pop-up ads.

I am thinking about adding my own ads but I am not sure how to do it.

Thank you.
 
well, I don't think modalviewcontroller is the way to go. I need a uiview on a separate thread, i think, that popins, dealyed for some time, and then pops out of the view.

I saw a lot of apps doing it Any idea how to do it?

Thanks,

Roei
 
I need a uiview on a separate thread, i think, ...
The UI can only be updated on the main thread.

... that popins, ...
Exactly what presentModalViewController:animated: does.

... dealyed for some time, ...
Fairly easy to implement using an NSTimer.

... and then pops out of the view.
Hello dismissModalViewControllerAnimated:

But I would suggest leaving it up to the user when they want the pop-up to go away (via a button, probably) rather than making that decision for them.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.