UIWebView showing Google Maps cuts off zooming controls - ios

As you can see in the image below, there is a problem showing Google Maps in a UIWebView on iPhone having a tab bar and navigation bar.
I searched for parameter to hide the zoomcontrols and only found a javascript api. But I dont know how to use it. Any ideas?

First of all, your app will be rejected as the Google logo is hidden breaking the Google license agreement.
If that's a simple webView (not MKMapView), set it's frame not to be overlaid with a tab-bar.
Regarding the question you asked, the java-script is applied to the webView with stringByEvaluatingJavaScriptFromString

Related

Action Extension with UI without covering whole screen?

I am currently trying trying to implement an Action Extension that transforms content on a Safari web page through Google's Translation API.
My issue is that I would like to display some UI on the screen without covering the whole screen, but no matter what I do that doesn't seem to work.
I have tried the following:
Setting this in the info.plist
<key>NSExtensionActionWantsFullScreenPresentation</key>
<false/>
Trying to change the content size in the interface builder to the following
https://imgur.com/a/gfYvFiD (Uploading images through stack isn't working for some reason)
Giving the UI a clear background color (always ends up being grey after the presentation is complete)
Setting the presentation style to be over current context.
Now i have seen a similar question where the accepted response was that it cannot be done due to Apple restrictions (https://stackoverflow.com/a/38764183/10058854), but I have seen some apps that seem to do it.
For example, iTranslate:
https://imgur.com/a/QpFo5St
The above 2 images clearly show that they have created an Action Extension and that the added UI is just the bar at the bottom of the web view.
Any help would be much appreciated, and thank you for reading this.

Hide Page Indicator Dot in WatchKit?

I'm new to native development on xcode and have gotten started working with WatchKit to put together a Watch extension for my HTML5 hybrid app. I'm trying to figure out how to hide the indicator dot on a page-based app view. It looks like the iOS analogue provides the ability to hide the dot, but I can't seem to find anything for WatchKit. The Apple reference site doesn't appear to indicate any such functionality, and don't see any config in the storyboard. I've Googled and searched on StackOverflow, and haven't found anything there either.
Is it possible to hide the page indicator dot on a page-based app view? If so, how might I accomplish this?
It is currently not possible to hide page indicator.

How can I keep the navigation bar at the top of the screen when scrolling?

I'm working on an iPad app in Xamarin that (among other things) will download PDFs from a file system and show them in a webview. When scrolling through the webview to read a PDF, I've been asked to keep the navigation bar at the top of the screen. It currently goes away once the user has scrolled down at all.
I searched for how to do this and for a question like this here, but did not find anything related to mobile development. I would think this is something others have tried, but perhaps this goes against Apple guidelines? If anyone has found something stating that, I'll take that as an answer or any sample code of an implementation of this would be greatly appreciated.
Create UIVIew and add there navigationBar. Under you navBar add webView. That's all.

How to create overlay video like has YouTube application in ios

I'm developing video app and as i see youtube app have feature of this.
I think overlay use by window view but not sure scaling uiview technique. Please guide web or text for me
help me
Yes, I mean like JSA986
I think the question is asking how to imitate the funcionality of YouTubes app, ie dragging the video playing window to the bottom corner of the screen – JSA986

What embedded browser is showing ad websites?

I have banner ads (mopub with AdMob and iAds) implemented in my app. When I click "Visit Site" on some ads I get a seemingly very nicely embedded UIWebView or browser experience with site navigation and a "Done" button in the lower right hand corner. Tapping "Done" takes me back into my app.
What exactly is providing the embedded browser experience here and how do I replicate it in my app? Is this a UIWebView buried somewhere in AdMob/iAds/etc SDK? I have already embedded a UIWebview, but I would like to leverage whatever framework and code the Aads are using if possible and provide a consistent experience.
Looks like SVWebViewController is exactly what I am looking for.

Resources