ios - Adding UIImagePickerController as a subview -
i want add together uiimagepickercontroller in custom frame, have been next few posts around adding uiimagepickercontroller view subview.
a couple of questions:
how adjust frame of subview? after adding subview, touch seems disabled (i can't browse photos or press cancel button), how solve this?many in advance!
my code:
self.imagepicker = [[uiimagepickercontroller alloc] init]; self.imagepicker.sourcetype = uiimagepickercontrollersourcetypephotolibrary; self.imagepicker.delegate = self; //this subview of self.view. [self.pickercontrollerholderview addsubview:self.imagepicker.view]; // seems adjust size of view, squashes view. // self.pickercontrollerholderview.transform = cgaffinetransformmakescale(1, 0.5);
the internals of class private , not meant added subview. self contained view controller , navigation controller , not work how expect to. if need custom ui picking photos, should access alassetslibrary
, display contents yourself.
ios objective-c
No comments:
Post a Comment