ios - adding button in cloudReco in vuforia sample -
i need add button instead of image on scanning through camera. after scanning able display image getting web service.but not able add button nor action working on targetoverlay class.can let me know how add button/action in targetoverlay class?
hope developing ios app. isn't possible dynamically load button loaded image using webservices. button needs compiled before run application.
if want you can dynamically change background image of button did image before.
to overlay button , implement callbacks following:
drag , drop button targetoverlayview.xib file.
in targetoverlayview.h add:
@property(retain,nonatomic) iboutlet uibutton *yourbutton; -(ibaction)onyourbuttonclick(id)sender;
(link both of them button in xib.)
in targetoverlayview.m implement callback:
-(ibaction)onyourbuttonclick:(id)sender { // code here }
Comments
Post a Comment