Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'ShapeRenderer.Draw(RectangleF)': no suitable method found to override #3

Open
xavierpena opened this issue Jun 7, 2016 · 3 comments

Comments

@xavierpena
Copy link

When I use the code in a new blank Xamarin Forms project (instead of directly using the code from github), I have the following error in DrawShape.iOS:

'ShapeRenderer.Draw(RectangleF)': no suitable method found to override

Regarding other compilation errors, I had to change:

using CoreGraphics;
using UIKit;

instead of:

using MonoTouch.UIKit;
using MonoTouch.CoreGraphics;

... so maybe the new UIView from Xamarin Forms is somehow different than the one from MonoTouch.UIKit?

@xavierpena
Copy link
Author

I have created a test project in order to isolate the issues and solve them:

https://github.com/xavierpena/XamarinShapesTest

@deduefren
Copy link

Seems, like an iOS API change, i was able to make it work with no more change that this two signatures:

public override void Draw(CGRect rect) { ... }
protected RectangleF AdjustForThickness(CGRect rect)

@Drakkins
Copy link

Drakkins commented Feb 8, 2017

@chrispellett Please take a look at the pull request of @cassionandi (pull request) it solve it and think about accepting it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants