objective c - how to dissmiss a popover on button click and how to change the size -
i using uipopover display videos using uiimagepickercontroller.in have dismiss popover when use clicked.can please me this?
also want change size of popover.now using below code chane size.but not working.width not getting changed.
[popover1 setpopovercontentsize:cgsizemake(1000.0 , 500.0) animated:yes];
please give me solution these 2 problems..
for dismissing popover controller can use below code in button action method.
[popovercontroller dismisspopoveranimated:yes];
for changing width can change frame of popover controller not contentsize.
popoverrect = cgrectmake(x, y, width,height);
i found trying
[popover1 setpopovercontentsize:cgsizemake(1000.0 , 500.0) animated:yes]; //it means in increases contentsize not width
Comments
Post a Comment