objective c - taking a picture in iOS app -
i cannot seem right. ive looked @ several tutorials no luck. realize simple task, why confused on why isnt working me. have programmatically made button inside expanding cell , when press it, suppose access camera take picture. have code:
- (void)buttonpressed:(uibutton *)button {     uiimagepickercontroller *picker = [[uiimagepickercontroller alloc] init];     picker.sourcetype = uiimagepickercontrollersourcetypecamera;     [picker setdelegate:self];     //picker.allowsimageediting = no;     [self presentmodalexpandingcell:picker animated:yes];      picker.showscameracontrols = yes; }   the error appears in line 5. , says "no visible @interface 'expandingcell' declares selector 'presentmodalexpandingcell:animated:'" have "" in .h file have no idea do. appreciated. in advance.
have declared method "presentmodalexpandingcell" in class? because, if not, why compiler throwing error.
Comments
Post a Comment