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

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -