I am using the Google IMA SDK in the table view. The video ad will display within the video cell as expected. But the scroll won't work in video cell while the ad is playing. Are there any ways to resolve this issue?
It's not feasible to do ios UITavleViewCell as per your expectations.
I found this on the Google Forums from one of the IMA SDK Team:
The behavior in which the page is not scrollable when pressing the video player while the ad is playing is an intended behavior, and this is something that would be fixed on your own implementation. One workaround is that by adding an event listener on the container element passed to the AdDisplayContainer for “touchmove” events to trigger the scroll on your page.
Related
I have successfully been able to add an admob banner ad to a collection view cell
I have 2 question
First one is :
-Are we allowed to use multiple banner ads in a collectionview
Second one is:
- are we allowed to use banner ads in collectionview cell
Becuase when the user scroll the ad stay at the index,and another ad is shown at different index
Yes, you can use multiple banner ads in a CollectionView! Here is a demo by Google how to implement it in a TableView (very similar):
BannerTableViewExample
I hope it helps! Please let me know if it works for you. I'm currently working on that as well.
I am trying to add animation in tableview similar to google plus similar to google plus, is there any reference form where I can learn or get any idea that how should I implement that animation. I am attaching the image of animation which I have implemented in android, exact animation I am trying to implement in IOS.
Here's a nice tutorial for your problem:
http://www.raywenderlich.com/49311/advanced-table-view-animations-tutorial-drop-in-cards
I'm trying to create an app and have embedded YouTube videos, but I need to remove the on-screen controls from the player (play/back/forward/volume, etc.). Does anyone have any suggestions on how to do this? Is it possible to have my own custom buttons instead (for example, "forward 60 seconds") I've looked at MPMoviePlayerController but research has me under the impression this is not what is called when UIWebView fires up a YouTube video.
I've also looked at the YouTube API but can't seem to find any good tutorials or examples on how to actually use it for iOS development.
Can someone point me in the right direction? I've been trying to figure this out for a couple of days and I just seem to be spinning my wheels.
Any help would be greatly appreciated!
you have multiple options
1. use youtube data api. you can edit the video controls if you use it.
2. you can use 3 rd party frame work youtubekit visit https://github.com/rinov/YoutubeKit
if you want to watch a tutorial got to youtube there is a channel called "codewithchris". here is the link https://www.youtube.com/playlist?list=PLMRqhzcHGw1aLoz4pM_Mg2TewmJcMg9ua
UIWebView is very limited. You cannot put video controls there. Because what UIWebView do is just shows another website as a frame. If there must be some controls, that controls should be in the website. So you cannot add any further controls.
If you want to use control buttons for your videos, instead of youtube, put the video in webpage with control buttons as like. Then put it in UIWebView. Or you can use the media player.
I've been wondering how apps like Facebook Messenger, Whatsapp or the Messages app on iOS itself work (from the UI perspective).
I assume they're using a UIScrollView and add UILabels at the bottom of view with the message and/or info of the message itself, giving a fixed space between labels, and so on...
Am I right or my approach is completely wrong?
In iOS6 and above, you have UICollectionView, which inherits from UIScrollView, but gives you tableview-like cell management without being restricted to one row. For example, both the iOS7 Messages app and the new Facebook Messenger use collection views to implement what you look for.
There are several open-source solution that implement a similar behavior, which you can take a look at for use or ideas. THSpringyCollectionView, JSMessagesViewController and others.
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