SORU
17 EYLÜL 2014, ÇARŞAMBA


iOS 8 render edilmemiş bir görünüm Snapshotting boş bir anlık sonuçları

İOS 8'de şimdi bu kodu kullanıyorum dek kameradan görüntü yakalama sorunu yaşıyorum

UIImagePickerController *controller=[[UIImagePickerController alloc] init];
controller.videoQuality=UIImagePickerControllerQualityTypeMedium;
controller.delegate=(id)self;
controller.sourceType=UIImagePickerControllerSourceTypeCamera;
[self presentViewController:controller animated:YES completion:nil];

Ama iOS 8'de bunu anlamıyorum ben

Snapshotting a view that has not been rendered results in an empty snapshot. Ensure your view has been rendered at least once before snapshotting or snapshot after screen updates.

Çözüm This Post tarafından sağlanan ile denedim

@property (strong,nonatomic)UIImagePickerController *controller;

_controller=[[UIImagePickerController alloc] init];
_controller.videoQuality=UIImagePickerControllerQualityTypeMedium;
_controller.delegate=(id)self;
_controller.sourceType=UIImagePickerControllerSourceTypeCamera;
_[self presentViewController:controller animated:YES completion:nil];

ve bu

...
controller.modalPresentationStyle=UIModalPresentationFullScreen;
or
controller.modalPresentationStyle=UIModalPresentationCurrentContext;
...

ve bu

double delayInSeconds = 0.1;
dispatch_time_t popTime = dispatch_time(DISPATCH_TIME_NOW, delayInSeconds * NSEC_PER_SEC);
dispatch_after(popTime, dispatch_get_main_queue(), ^(void){
    [self presentViewController:controller animated:YES completion:nil];
});

ve bu

[self presentViewController:controller animated:YES completion:NULL];

ve bu

[self presentViewController:controller animated:YES completion:^{

}];

herhangi bir fikir?

CEVAP
24 EYLÜL 2014, ÇARŞAMBA


Bu iOS 8.0 sadece bir hata olduğuna eminim. Yukarıda yaptığın gibi UIImagePickerController bir hediye için bir girişim başka bir şey yok POC uygulamalar en basit tekrarlanabilir. Ayrıca, görüntü seçiciyi görüntülemek için alternatif desen/kamera, bildiğim kadarıyla yok. Hatta Elma Using UIImagePickerController sample app, çalıştırmak indirebilirsiniz, ve aynı hatayı kutu oluşturur.

Bu işlevselliği benim için hala çalıştığını söyledi. Uyarı/hata dışında, app işleyişi ile ilgili sorunlar var mı?

Bunu Paylaş:
  • Google+
  • E-Posta
Etiketler:

YORUMLAR

SPONSOR VİDEO

Rastgele Yazarlar

  • Break

    Break

    10 Aralık 2005
  • MrSuicideSheep

    MrSuicideShe

    9 NİSAN 2010
  • StalkerJS

    StalkerJS

    15 HAZİRAN 2010