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.
Related
The problem:
When I present the new screen it always appears from the bottom. This is what I use:
presentControllerWithName("Screen1", context: context)
I also tried with pushControllerWithName and it didn't work. Is it possible to present a view from the top in a watchOS app like when you swipe to check the notifications? If there is, could you tell me how?
What I want:
When I swipe up, a new screen appears from the bottom
When I swipe down a new screen appears from the top like when you swipe to see the notifications
Try the following in the simulator or a device.
Create a new Master-Detail application for iPhone or compare any app that uses navigation bars. iOS 5 or 6, don't matter.
In the case of the template: Let it run,create an entry using the plus button and open the entry.
Now touch the area below the navbar directly under the UIBarButtonItem thats leads back.
Even when the button nor the navigation bar is clearly not touched, the button will activate and the view does return.
This is way beyond the 44x height of the navbar.
What is happening here?
Why does this button respond way beyond his frame?
Cant find an info about this in the HIG.
iPhone
The area you can press to activate the back button is actually larger than the actual pixels of the button to accommodate the average thickness of fingers. (The actual number of pixels is buried somewhere in Apples HIG. I think it is 44x44.) This is expected behavior.
iPad
The master view controller is automatically dismissed when you tap outside it. This is expected behavior.
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
This problem appears similar to other posts, it is not the same as any I can find.
My application has "NO" status bar, it uses a tab bar controller and each tab has a navigation controller. There is nothing special about any of these controllers, all per Apple's guidelines.
When a video is selected a view is pushed onto the stack and shows information about the video and a UIWebView with HTML5 and the Video (+ViewPort) tags. The video goes full screen, if you tap the video and hit done, you return to the view without any issues.
If you rotate the device while the video is playing, then tap and select Done you are returned to the view but the 20px status bar remains as white space. No events are fired anywhere when the video quits so I have not been able to resize the view.
(just an FYI, I tried making the app use a StatusBar, the result was a chopped off view when the video quit under the same conditions)
Any ideas would be great, thanks.
This has been confirmed by Apple as a bug and will be fixed in a future release. I opened the bug with ID 9251792 if anyone needs a reference.
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.