objective c - Ios App working when installed from Xcode on iphone 5S but not when installed from App Store -


i'm having problem when installing app app store, camera doesn't work on iphone 5s, on iphone 5s weird thing work on other iphones , works on iphone 5s when installed xcode, it's same version checked. bug appears in camera, i'm using avcapturesession show camera , code i'm using capture picture.

// capture image - (void) capimage {     avcaptureconnection *videoconnection = nil;     (avcaptureconnection *connection in stillimageoutput.connections) {          (avcaptureinputport *port in [connection inputports]) {              if ([[port mediatype] isequal:avmediatypevideo] ) {                 videoconnection = connection;                 break;             }         }          if (videoconnection) {             break;         }     }      nslog(@"about request capture from: %@", stillimageoutput);      [stillimageoutput capturestillimageasynchronouslyfromconnection:videoconnection completionhandler: ^(cmsamplebufferref imagesamplebuffer, nserror *error) {          if (imagesamplebuffer != null) {          nsdata *imagedata = [avcapturestillimageoutput jpegstillimagensdatarepresentation:(imagesamplebuffer)];              self.imagencamara.image = [uiimage imagewithdata:imagedata];             imagesamplebuffer = nil;             imagedata = nil;         }     }]; } 

oh, bug camera, else in app works, doesn't capture pic, stays gray when pic taken can't seem find problem, don't make sense of not working on iphone 5s when installed app store working when installed xcode.


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -