I'm trying to integrate iAd in iOS 7 app. According to Apple tutorial, one just have to use method:
self.canDisplayBannerAds
and iAd will work without a hitch. As I use it according to the tutorials, it gives a blank white screen. How to integrate iAds then? Do I have to use ADBannerViewDelegate so something else. Kindly explain
Im not sure about the simulator but if your testing on a device you need to do the following. Go into your settings select developer and select fill rate then 100%.
do you figure out mentioned issue?
I guess you need to implement the adbannerviewdelegate to handle load, unload, failed load scenarios. The blank white screen may be caused by network connectivity.
Related
I am currently building an IOS app with React Native, and I am looking into how to prevent users from taking screenshots on certain parts of the app.
I read this article on this issue: https://www.netguru.com/blog/prevent-screenshots-react-native, and I learned that there are basically two options. I can either use the paid ScreenShieldKit SDK or I can create an invisible screen animation that somehow covers the content of the app in a screenshot.
I am not looking to pay for ScreenShieldKit, so how can I go about making this animation to cover screenshots on my app, and will it even work?
Any help is appreciated. Thanks!
The two options for preventing screenshots on a React Native IOS App
ScreenShieldKit's technology is patented. And more likely than not, it is based on the other solution which you yourself know of (invisible screen animation). So it may not be wise to post the exact code here, as it could very well infringe upon their patent.
I want to implement an add new item dialogue in my app similar to add alarm dialogue in the clock app (screenshot). Prior to this moment I always used the same storyboard scene design for iphone and ipad with autolayout to make it look good on both devices. But I'm wondering how can I implement a view similar to Add Alarm dialogue - it looks very compact on both iphone and ipad especially because on ipad it's a separate small view that is not stretched across the screen. Can somebody please point me how to implement it? I don't really need the code, just some directions that can help me.
Found it in the apple documentation:
https://developer.apple.com/library/content/featuredarticles/ViewControllerPGforiPhoneOS/PresentingaViewController.html
I've developed an app for iOS with Swift and now I'd like to add an ADBannerView in my tableviewcontroller just to show some iAd banners.
This is what I did :
I linked the iAd framework
In the ViewDidLoad of my tableviewcontroller I have added the following code :
self.canDisplayBannerAds = true
Quite easy! Perhaps too easy, because everything seemed to work fine, the view displayed the ad correctly but... performance was really bad!! My tableview scrolls smooth if I don't show the ad and keeps lagging while the ad is displayed... how come? What have I missed?
Thanks a lot
D.
thanks for your help, I was totally wrong, iAd wasn't the cause of slowness of my app.
I've found the problem (I was setting the font of a textbox inside the cellforrowatindexpath method).
I've upvoted your comments because they were the correct way to find the issue.
thanks again
All the best
D.
I've completely and properly (to my understanding) setup AdMob mediation so that my iAd will show up before my AdMob ad, and if the iAd doesn't fill then I would like to show the AdMob ad. Thing is, iAd banner never shows up..EVER! If I disable iAd in my AdMob account everything works perfectly and AdMobs show up but I would really like to get both working. Any help on this matter would be greatly appreciated. (I've followed Googles guide to setting up mediation). Anyone else having this issue?
Thanks in advance for any help :)
Have you added the admob adapter for iAds to your project? It can be found here,
https://developers.google.com/mobile-ads-sdk/docs/admob/ios/mediation-networks
Direct download link : https://dl.google.com/dl/googleadmobadssdk/libadapteriad.zip
If not AdMob won't be able to serve iAds via their mediation SDK.
Weird solution but it worked:
By following the guide provided by Google to setup Ad Mediation in iOS, it tells you to implememnt it via Storyboard/nib. Once I removed this method and simply implemented the GADBannerView programmatically, everything began to work as expected. Quite the annoying issue, but thankfully it's solved and I can move on.
I am making demo videos of my iOS apps, some of which I made with XCode and others of which I made in Unity3D. I plan to use the Elgato Game Capture HD to capture my demo videos but I am not sure how to show the "taps." I found Touchpose, but when I changed the main.m as suggested by the instructions on the GitHub page I got error messages saying that QAppDelegate and QTouchposeApplication were undefined. I added import "QTouchposeApplication" but got an error message suggesting I change QAppDelegate to AppDelegate. When I did this the build failed. When I left it as QAppDelegate, added QAppDelegate to the project and imported it into the main.m the error messages went away but the build still failed. Am I doing something incorrectly? I found no tutorials on Touchpose online and am confused. Alternatively, is there some other easy solution, for example using the Elgato software or some other software or framework? I also tried Reflector but my wifi is not fast enough to support good frame rates with it. I am aware that I could use unity and "build for OSX" or in the case of XCode apps just screen record the simulator but I would prefer a single, foolproof solution for all of my apps. Thanks!
One way is to use assistive touch and create your own touch. You can do this by going to Settings > General > Accessibility > AssistiveTouch, turn it on, then tap the thing that pops up, click Custom, then create your own touch. Then use that touch to show taps in a screen recording.
It's a bad solution, but I'll post it in case it fits your needs.
You would have to superimpose multiple videos to make it so that only the tap shows and not the AssistiveTouch icon. Also, you can't scroll while using it.
It's also explained here: https://www.youtube.com/watch?v=4JqjU0-4Cek
Are you able to demo on a simulator? If so, Giphy Capture is a good solution. It has an option for showing taps in the settings.
If you can make your screen recording on iOS simulator, you can enable displaying taps with following code. Open your terminal and run it and restart your simulator.
defaults write com.apple.iphonesimulator ShowSingleTouches 1
I had trouble with Touchpose initially but figured out how to use it. The issue is that you have to go to build phases and add the .m. In regard to screen recording I am using the Elgato Game Capture HD. My only problem is showing the dots on Unity 3D applications, which is something I am still working on.