xcode - Expected identifier image -
hi new here , noob xcode please help. trying make imagepickercontroller having trouble 1 error , don't know how solve it.
viewcontroller.h
@interface viewcontroller : uiviewcontroller<uiimagepickercontrollerdelegate> { iboutlet uibutton *button; iboutlet uiimageview *image; uiimagepickercontroller *imagepicker; } - (ibaction)change:(id)sender; @end
viewcontroller.m
@interface viewcontroller () @end @implementation viewcontroller -(void)touchesmoved:(nsset *)touches withevent:(uievent *)event { uitouch *mytouch = [[event alltouches] anyobject]; button.center = [mytouch locationinview:self.view]; } - (void)viewdidload { [super viewdidload]; imagepicker = [[uiimagepickercontroller alloc] init]; [imagepicker setsourcetype:uiimagepickercontrollersourcetypephotolibrary]; [imagepicker setallowsediting:yes]; } - (ibaction)change:(id)sender { [self presentviewcontroller:imagepicker animated:yes completion:no]; } - (void)imagepickercontroller:(uiimagepickercontroller *)picker didfinishpickingmediawithinfo:(nsdictionary *)info { [uiimage(setimage:)image]; [self dismissviewcontrolleranimated:yes completion:no]; } @end
expected identifier [uiimage(setimage:)image];
[uiimage(setimage:)image] needs [someimageview setimage:image] someimageview instance of uiimageview