बदलने के लिए मैं कोको नियंत्रण जो इस विधि का उपयोग"interfaceOrientation" iOS 8, में हटा दिया गया है इस विधि उद्देश्य सी
- (AVCaptureVideoOrientation)orientationForConnection
{
AVCaptureVideoOrientation videoOrientation = AVCaptureVideoOrientationPortrait;
switch (self.interfaceOrientation) {
case UIInterfaceOrientationLandscapeLeft:
videoOrientation = AVCaptureVideoOrientationLandscapeLeft;
break;
case UIInterfaceOrientationLandscapeRight:
videoOrientation = AVCaptureVideoOrientationLandscapeRight;
break;
case UIInterfaceOrientationPortraitUpsideDown:
videoOrientation = AVCaptureVideoOrientationPortraitUpsideDown;
break;
default:
videoOrientation = AVCaptureVideoOrientationPortrait;
break;
}
return videoOrientation;
}
समस्या "interfaceOrientation" iOS 8 लेकिन में पदावनत है से एक simpleCamera दृश्य डाउनलोड किया है मैं नहीं जानता कि स्विच स्थिति में इसे कैसे और कैसे बदला जाए।
@cetcet से उत्तर को सही के रूप में चिह्नित न करें जब तक कि आपको या तो बेहतर तरीका न मिले या पाया कि यह सही नहीं है - मेरे लिए, ऐसा लगता है। –
http://stackoverflow.com/a/3897243/194544 – beryllium