开发者

How to change the UIImagePickerControllerSourceType in iPhone

开发者 https://www.devze.com 2022-12-17 01:59 出处:网络
Hey can anybody tell me how I can change the camera view in iphone wher开发者_StackOverflow中文版e i found to buttons like \'use\' and \'retake\' and \'Move to Scale\'message in that window I want to

Hey can anybody tell me how I can change the camera view in iphone wher开发者_StackOverflow中文版e i found to buttons like 'use' and 'retake' and 'Move to Scale'message in that window I want to add some Label on top most part.How could I do that.

Reply soon


You question title and your actual question seem a bit different.

To change the UIImagePickerControllerSourceType just set your controller's .sourceType property to your desired type:

   UIImagePickerControllerSourceTypePhotoLibrary,
   UIImagePickerControllerSourceTypeCamera,
   UIImagePickerControllerSourceTypeSavedPhotosAlbum

Now, to add a label on the picker controller, you should create your UILabel and add it to your picker's "camera overlay view" (@property(nonatomic,retain) UIView *cameraOverlayView). To use this feature you should be building your app for OS 3.1 or later.

In any case, it would help to take a look at the UIImagePickerController Class reference.

0

精彩评论

暂无评论...
验证码 换一张
取 消