开发者

Is it possible to setContentInset of ABPeoplePicker & UIImagePickerController?

开发者 https://www.devze.com 2023-03-27 18:56 出处:网络
I know it\'s possible to add a inset for a UITableView like so: [self.tableView setScrollIndicatorInsets:UIEdgeInsetsMake(5, 0, 46, 0)];

I know it's possible to add a inset for a UITableView like so:

[self.tableView setScrollIndicatorInsets:UIEdgeInsetsMake(5, 0, 46, 0)];
[self.tableView setContentInset:UIEdgeInsetsMake(5, 0, 46, 0)];

Is it possible for a ABPeoplePicker & UIImagePickerController (sourceTyp开发者_Python百科ePhotoLibrary)?

Thanks!

Coulton


You need to access the Table view of ABPeoplePicker and then probably try applying your changes there


     for (UITableView *tbl in picker.topViewController.view.subviews)
     {
         //Your changes here
       [tbl setScrollIndicatorInsets:UIEdgeInsetsMake(5, 0, 46, 0)];
       [tbl setContentInset:UIEdgeInsetsMake(5, 0, 46, 0)];

     }

I have no clue regarding UIImagePickerController so can't help you with that

Hope this helps

0

精彩评论

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

关注公众号