R roeik macrumors member Original poster Dec 25, 2008 80 0 Jan 8, 2010 #1 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.
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.
R rarindeed macrumors newbie Dec 28, 2009 7 0 Jan 8, 2010 #2 What do you mean by a pop up ad in the context of an iPhone app?
dejo Moderator emeritus Sep 2, 2004 15,982 452 The Centennial State Jan 8, 2010 #3 Probably the same technique to popping up any ol' UIView. That is, presentModalViewController.
R roeik macrumors member Original poster Dec 25, 2008 80 0 Jan 10, 2010 #4 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
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
dejo Moderator emeritus Sep 2, 2004 15,982 452 The Centennial State Jan 10, 2010 #5 roeik said: I need a uiview on a separate thread, i think, ... Click to expand... The UI can only be updated on the main thread. roeik said: ... that popins, ... Click to expand... Exactly what presentModalViewController:animated: does. roeik said: ... dealyed for some time, ... Click to expand... Fairly easy to implement using an NSTimer. roeik said: ... and then pops out of the view. Click to expand... 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.
roeik said: I need a uiview on a separate thread, i think, ... Click to expand... The UI can only be updated on the main thread. roeik said: ... that popins, ... Click to expand... Exactly what presentModalViewController:animated: does. roeik said: ... dealyed for some time, ... Click to expand... Fairly easy to implement using an NSTimer. roeik said: ... and then pops out of the view. Click to expand... 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.