Get Shell TabBar height from iOS - xamarin

I need to be able to set a static property in my App.cs with the TabBar height on iOS. I think I probably need a custom renderer to achieve this,
This would be trivial if it were just a TabbedPage - but with Shell I can not see a way to access and store what I need.
Has anyone done anything similar and will to point me in the right direction?

Please ignore - re read the documentation and found the answer! Can override CreateShellItemRenderer!
https://learn.microsoft.com/en-gb/xamarin/xamarin-forms/app-fundamentals/shell/customrenderers

Related

Custom view for swift

I want to make an view that looks like a wall in swift 3.
Here is an example:
Every entry should look like a square with some information.
Is there any framework which I can use or do someone know a solution for that?
I can't comment because of reputation issue. You can use UICollectionView if every entry has same width and height.Here is a tutorial https://www.raywenderlich.com/136159/uicollectionview-tutorial-getting-started.
If not, you can create subviews using UIView with your desired UI components.

Problems implementing AdMob because of Spritekit

After following the instructions from AdMob on how to implement their code, I faced the following problem.
I had to link the UIBannerView that was set up in the storyboard with my GameScene, this, as you might know, is not possible. So I decided to link it with my GameViewController. The problem here is that I can't decide when to show the BannerView since the value's and functions that decide this are implemented in the GameScene file. Is there any way I can fix this?
Thanks for your help,
Max Savelkoul
Move the methods from game scene into the view controller and call them by using NSNotificationCenter or delegation.
You could also add the banner code manually instead of using storyboard.
var adMobBannerAdView: GADBannerView!
and than set it up
adMobBannerAdView = GADBannerView(adSize: kGADAdSizeSmartBannerPortrait)
adMobBannerAdView.center = CGPoint...
Alternatively I have a helper on GitHub you could check out. Also helps to keep your code clean.
https://github.com/crashoverride777/Swift2-iAds-AdMob-CustomAds-Helper

How Can I Chance or Set the Access Modifier in Xamarin Forms

I have to access user control in different view. But I get the inaccessible due to control's protection level error. I searched quite for a long time but I can't find anything. Please help me.
Thanks.
There are two possible solutions I can think of:
Hard-way: Create a custom MultiPage with custom renderer for every platform (https://developer.xamarin.com/api/type/Xamarin.Forms.MultiPage%601/ and https://developer.xamarin.com/guides/cross-platform/xamarin-forms/custom-renderer/)
Make a custom ContentView with all you layout elements and bindable properties and add it to all you pages (and set the correct bindings). Something like this: https://stackoverflow.com/a/32610859/5064986
(I think) I had a similar situation. I found that a ListView was inaccessible due to protection level in the code behind to the xaml. I added this to the ListView element.
x:FieldModifier="public"
Based on this in docs.

"Bounce" style animation for UIImageview?

I have an image that is the template for a form in my app, I want to add a little bounce effect when its opened, similar to a UIAlertView's when it first shows (zooms in, then 'bounces' then stays still)
Any ideas how to do this?
Thanks!
This question is already asked. please find it below,
Mimic UIAlertView Bounce?
Happy coding!!!

Animating toolbar with textfield up above the keyboard when the the textfield is edited

Okay I'm looking for some assistance I have researched and read posts that pertain to what I am trying to do, but none of the examples include a toolbar with a URL textfield. I am not looking to make any money off of this browser. I want it for personal use, furthermore I am not trying to insult nor take what you guys do as a profession as a joke. So if I come across that way I sincerely apologize. My toolbar is located at the bottom of the screen and I have a URL textfield. When I use the textfield to enter a website address the keyboard covers the toolbar and I cannot see what I am typing. So if you can offer some assistance that would be greatly appreciated.
I'm getting an error on the CGRect frame =self.scrollView can someone please assist me? Thanks!
I hope my code is not far off the websites load perfectly fine. I just want to move the toolbar up when the textfield is edited and drop back down after go is press....I have tried to include the toolbar inside the scrollview but I do not know what to do after.
Best regards! :)
CGRect frame = self.scrollView;
this line must be:
CGRect frame = self.scrollView.frame;

Resources