neilkennedy / fontawesome.xamarin Goto Github PK
View Code? Open in Web Editor NEWFontAwesome Library for Xamarin.iOS (MonoTouch)
FontAwesome Library for Xamarin.iOS (MonoTouch)
Hi :-).
This looks really cool! However, I get the following error when trying to compile my project:
Error MT0034: Cannot include both 'monotouch.dll' and 'Xamarin.iOS.dll' in the same Xamarin.iOS project - 'Xamarin.iOS.dll' is referenced explicitly, while 'monotouch.dll' is referenced by 'FontAwesome.Xamarin, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'. (MT0034) (Reflect.Mobile.iOS)
Based on a little research I have learned that the build build of FontAwesome.Xamarin does not work with the unified iOS api. I tried recompiling the source but no luck so far. Any ideas?
Thanks for this project!
Thanks for the awesome project!
Can you upgrade the version inside nuget to the one with Unified API?
I am using couple of icons for button images
eg: icon2Button.SetTitle(FontAwesomeXamarin.FontAwesome.FAMapMarker, UIControlState.Normal);
I want to see these icons bold, change color. how do I make them?
I have just started using Xamarin.Forms and would love to use FontAwesome with it.
I am trying to create a bar button item but it does not let me use the constructor where I do not give it a title. Whenever I try the code at the bottom, it tells me "This button does not have a title" so the view won't load. I tried the demo code in the documentation where the title is not explicitly set, also, and the same issue occurs.
NavigationItem.RightBarButtonItem = new FABarButtonItem(FontAwesome.FACog, UIColor.FromRGB(0,68,130), delegate { });
When I try to create a demo like you provide I get the following error when trying to build the project:
"error MT0034: Cannot reference 'monotouch.dll' in a Xamarin.iOS project - it is implicitly referenced by 'FontAwesome.Xamarin, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'."
I replaced the line
label.Font = FontAwesome.Font(100)
with
label.Font = UIFont.FromName("FontAwesome", 30);
which is pretty much the same as FontAwesome is doing of course ;-)
Issue is when using the second line there is no build issue BUT when using the first line I get the build error. Seems that that the nuget package references an other monotouch assembly as the normal project.
I installed FontAwesome from nugetPackage as version 4.0.3.
Environment:
=== Visual Studio Community 2017 for Mac ===
Version 7.0.1 (build 24)
Runtime:
Mono 5.0.1.1 (2017-02/5077205) (64-bit)
GTK+ 2.24.23 (Raleigh theme)
Package version: 500010001
=== Apple Developer Tools ===
Xcode 8.3.3 (12175.1)
Build 8E3004b
=== Xamarin.iOS ===
Version: 10.10.0.36 (Visual Studio Community)
Hash: d2270eec
Branch: d15-2
Build date: 2017-05-22 16:30:53-0400
=== Xamarin.Mac ===
Version: 3.4.0.36 (Visual Studio Community)
=== Build Information ===
Release ID: 700010024
Git revision: 7ab1ca2ced6f584e56b7a0d4d321d00775cd95c9
Build date: 2017-05-19 05:44:51-04
Xamarin addins: 08d17158f3365beee5e60f67999e607cce4b3f93
Build lane: monodevelop-lion-d15-2
=== Operating System ===
Mac OS X 10.12.6
Darwin 16.7.0 Darwin Kernel Version 16.7.0
Thu Jun 15 17:36:27 PDT 2017
root:xnu-3789.70.16~2/RELEASE_X86_64 x86_64
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.