I was wondering wether I can hide iAds once they are tapped. This way, once the user taps on the ad, he can get rid of it. It will draw incentive to tapping on the ads to get rid of them. All I am doing different is hiding the iAd banner when the 'bannerViewDidFinish' method is called. Is this ok to do? I know that I can't get another ad displayed until the user restarts the app, but I am ok with that. Thanks for your help.
Have a look at rule 7.1 of the App Store Review Guidelines.
Apps that artificially increase the number of impressions or click-throughs of ads will be rejected
Imho "It will draw incentive to tapping on the ads to get rid of them." is covered by this rule.
[banner hide] or banner.hidden = YES under a touchesBegan mehod or put an invisible button over the ad or a no imaged uiiamgeview and implement pressed button or touched image
Related
Is it possible to block appearing of notification screen by swiping from top edge of screen on iPhone when my application is in foreground state. Doesn't this break iOS HIG rules?
You don't want to do that. (And you can't.)
There is a way to keep it from appearing immediately, however: hide the status bar. When you do this, the system will first show a little grabby thingy when the user swipes down from the top. If the user swipes again, Notification Center will show.
I am implementing something like Eula in my iPhone app. I need to enable the confirm button only when user reads whole Eula (scrolls along whole long text).
I am using UIAlertView, with long inside text. Thanks to this, the text field inside alert view have a scroll bar on its right side.
I need to access the delegate of this scroll, because I need to enable OK button only if user scrolls down with scrollable text.
If you are planning to release this app on the AppStore, you can't do it using the builtin UIAlertView.
UIAlertView doesn't have any method, and it's delegate protocol doesn't give you this kind of information.
Probably you can achieve this iterating through the subviews of the UIAlertView instance, but doing this will guarantee your app the rejection :-)
the only thing you can do is to create your own "MYAlertView" component
I want to display a view with two text field and a button. I want to pop the view like an alert view. Just like how Facebook is popping up and asking for credentials.
The UIAlertView will accept addTextFieldWithValue:label:, but this is an undocumented API and may cause Apple to reject your app. There was a discussion in the iPhoneDevSDK.com forums about this with some sample code to do the same in an acceptable manner.
http://www.iphonedevsdk.com/forum/iphone-sdk-development/1704-uitextfield-inside-uialertview.html
The way to do this is to subclass UIAlertView and override the DrawRect: method. You can then resize the window, change its color, and anything inside. Hope it works out for you!
Edit: here is a link that i used a while back to give me a basic idea behind it.
http://joris.kluivers.nl/iphone-dev/?p=CustomAlert
When turning off mail / calendars from an Exchange or MobileMe account in Settings, you will see a "Turning off mail..." badge appear over all view elements while the process is occurring. The badge intercepts all touch events while it's visible.
I've seen this replicated a couple of times in other apps and was wondering if anyone had any pointers on how to create and display such a badge.
What you'll probably want to do is create a transparent UIView with your badge that spans the entire screen. This way you can catch touches anywhere on the screen and redirect them to the badge (and probably just dispose of them altogether). You can use a UIActivityIndicatorView to show progress in your badge while you process.
I'm trying to create a modal status indicator display for an iPhone app, and would like one similar to this one used in Tweetie:
Specifically, this one "shades out" the entire screen, including the toolbar. I don't believe through any normal UIView manipulation, I can extend past the bounds of my window, can I? I believe I've seen a status indicator like this somewhere else on iPhone, possibly when I added an Exchange e-mail account.
I've tried subclassing UIAlertView and overriding its drawRect method. If I don't call [super drawRect:] it doesn't ever display the normal UIAlertView text box, however my drawing rectangle is in an odd size and position.
Anyone have any advice to accomplish this?
Check out MBProgressHUD.
Take a look at the source code to the WordPress application. They have code which you can basically drag and drop into your application to do this.
http://iphone.wordpress.org/development/
I haven't done this myself, but you could layer a UIView at the top of the view hierarchy, and use setHidden to dynamically show or hide it. Since it's at the top of the stack, it should be able to intercept all touch events.