I have a webview inside mainwindow.xib. Te webview shows an admob ad and when clicked it is supposed to close the app and open the app store. For some reason this is not happening. When the ad is clicked nothing happens. Can this be due to the webview being inside main instead of a viewcontroller? If not then what can be causing this?
It's possible that some other view is intercepting the touches, the UIWebView has user interaction disabled, or the view the UIWebView is a child of has user interaction disabled.
It's hard to say exactly without some more information. Can you take a screenshot of how the mainwindow.xib is laid out?
Related
I work on the iMessage App and stumbled upon this nasty bug. I would really appreciate the power of the community. Did anyone manage to solve it?
A clear description of the problem:
I work on a Standalone iMessage App. When the iMessage app is active but hidden below the keyboard tapping on the message from that extension opens an app with an empty screen. Investigation of this problem led me to the conclusion that there is no UIWindow attached to the window property of the view in the MessagesViewController. Also, the MessagesViewController is not displayed in the view hierarchy, and MessagesViewController life cycle methods like viewDidLoad and viewDidAppear are not called.
A step-by-step set of instructions to reproduce the problem:
Open an iMessage App (for example Youtube) and send a message from that app to a chat.
Open the iMessage App again
Scroll up so that the iMessage App gets hidden below the keyboard
Scroll down to find a message that you’ve sent in step 1
Tap on the message
The app will expand with an empty view
Here is the bug reproduced in Apple's iMessage Example App https://youtube.com/shorts/3UGyZimctSg?feature=share
I'm opening an UIWebView from my iPad Application as a PresentModalViewController and opening google maps "http://maps.google.com/maps?q=London" , everything is working fine but the only problem is when i search places source and destination and click on arrow button the keyboard is not resigning, but it is working fine when i open it in safari.
How to resign my keyboard when i click arrow button inside UIWebview?
Any help is thanks in advance.
I would suggest implementing delegate UIWebViewDelegate and catching the event when the page is being reloaded. I am not sure which arrow button you mean, but I believe that when you click that button the UIWebView loads the previous web page. At that point webViewDidStartLoad should be called, in which you can try to call resignFirstResponder on UIWebView.
When a user clicks a button, I want a full screen iAd to appear, before the user can continue.
I can create the popup view, but how do I fill the whole view with an iAd? (e.g. like its done in wordfeud)
ADInterstitialAd (or full screen iAd) is only available for the iPad. You can't use it on the iPhone.
From iAd Programming Guide:
Full-Screen Advertisements are Only Available on iPad
Have a look at that guide to see how to implement full-screen iAds on the iPad.
Use the ADInterstitialAd class. You can present it from another view controller (e.g. your main game board’s) with -presentFromViewController:, or within an existing view with -presentInView:.
G'day All
My app has a first run component that presents a login/signup screen & on successful login/signup moves on to loading the app's data. For those who've seen it the process follows similar style to that in Instagram. If the keyboard is dismissed on entering the password & there's an error it pops back up as soon as it's gone which strikes me as not being a great look. So is there any way to disable the keyboard or prevent user interaction without actually dismissing it while the app sends the user credentials & waits for a response?
Cheers & TIA, Pedro :)
After the first dismiss, I would set the UITextField as disabled. No user Interaction is possible anymore and the keyboard shouldn't pop up anymore. This will also have the nice UI touch of being greyed out.
Additionally, you should have a TextFieldDelegate 1 implement textFieldShouldBeginEditing: and return NO;. That will cause the keyboard to not appear.
This is kind of on the back of a previous question. Im currently throwing together a simple social networking iphone. For my question you can think of the application to be quite similar to the facebook iphone app.
It is based off the navigation template and the menu view is the top level view controller for my navigation controller. The user needs to log in to use the application.
Im just wondering whether the navigation controller should be the starting view and if the user has not logged in (when the user logs in I will store the login information so that they do not have to login next time the open the app) than it will throw the login page up modally. Or if the login page should be the startup view and on login the login control will create and go to the navigation control.
Thanks in advance
If the user needs to log in before using the application, then showing the login screen modally is probably the best bet for the first view that gets displayed.
Apple does this with their iTunes Connect app that is available when you go to view your sales data. They show a black screen while the app is loading, modally display the login screen, then dismiss the view to show the guts of the app.
Plus in your case it would be nice to have the navigation controller ready in the background by the time the user login screen gets dismissed (i.e. you could delay it with an activity indicator while readying the view). It would give the impression of a more responsive app