ios - PaintCode button press in view using objective-c? -


so used paintcode make popup view. used 2 canvases it, main 1 popup , x close button. want able detect when x tapped can close view. paint code files class of type nsobject , using uiview class call function. x button implemented follows:

//// symbol drawing cgrect symbolrect = cgrectmake(194, 12, 17, 17); cgcontextsavegstate(context); cgcontextcliptorect(context, symbolrect); cgcontexttranslatectm(context, symbolrect.origin.x, symbolrect.origin.y);  [pinview drawcanvas2withframe: cgrectmake(0, 0, symbolrect.size.width, symbolrect.size.height) resizing: pinviewresizingbehaviorstretch]; cgcontextrestoregstate(context); 

thanks in advance.


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? -