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

Generic Map Parameter java -

python - Operations inside variables -

kendoui grid detail template -