iphone - Xcode 5.1.1 expected identifier or '(' -
iphone - Xcode 5.1.1 expected identifier or '(' -
it says when seek , run app need expected identifier or '(' line of code:
if(ui_user_interface_idiom() == uiuserinterfaceidiomphone){
it in line of code:
if(ui_user_interface_idiom() == uiuserinterfaceidiomphone){ if(![uiimagepickercontroller issourcetypeavailable:uiimagepickercontrollersourcetypephotolibrary]){ [self alert:@"photolibrary not supportted in device."]; return; } imagepicker = imagepickerphoto; [self presentmodalviewcontroller:imagepicker animated:yes]; else{ if(!popover){ imagepicker = imagepickerphoto; popover = [[uipopovercontroller alloc] initwithcontentviewcontroller:imagepicker]; [popover presentpopoverfrombarbuttonitem:sender permittedarrowdirections:uipopoverarrowdirectionany animated:yes]; }else{ [popover dismisspopoveranimated:yes]; [popover release]; popover = nil; }
please re-create , paste xcode, , enclose code in 'code brackets'
if (ui_user_interface_idiom() == uiuserinterfaceidiomphone) { if(![uiimagepickercontroller issourcetypeavailable:uiimagepickercontrollersourcetypephotolibrary]) { [self alert:@"photolibrary not supportted in device."]; return; } imagepicker = imagepickerphoto; [self presentmodalviewcontroller:imagepicker animated:yes]; else { if(!popover) { imagepicker = imagepickerphoto; popover = [[uipopovercontroller alloc] initwithcontentviewcontroller:imagepicker]; [popover presentpopoverfrombarbuttonitem:sender permittedarrowdirections:uipopoverarrowdirectionany animated:yes]; } else { [popover dismisspopoveranimated:yes]; [popover release]; popover = nil; }
looks first 'else' in wrong place, , you're missing closing }
iphone xcode
Comments
Post a Comment