xamarin.ios - Using Vector pdf Image in Xamarin IOS -


in xamarin.ios visual studio project, wanted use vector pdf image in uiimageview. not able add vector image directly in storyboard designer (also tried drag-drop).

is there way use vector pdf image in xamarin ios? sample helpful.

thanks.

yes, lowleetak said, need add pdf file asset first.

xamarin tutorial here , follow step ,it's simple.

edit:

there no option select attributes inspector setting scales single vector in visual studio. there alternative this?

afaik,there no option set scale vector , maybe set property when generate pdf file.

i want handle click event capture image x y co-ordinates in c#. there way this?

override touch event . documentation here.

code :

public override void touchesbegan(nsset touches, uievent evt) {     var touch = touches.anyobject uitouch;     cgpoint point = touch.getpreciselocation(yourimage); } 

update:

  • on iphone5:

enter image description here

  • on iphone6

enter image description here

and constraints

enter image description here


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -