tags:

views:

58

answers:

0

hi all

i have an app in which as the app launch we are showing a image view on which a image is mounted and this is in the landscape mode as user rotate the orientation of the device to portrait mode we have to play some video. The playing video is of the length 2 minutes if user continue playing it inthe portarite mode than the video as complete its time than it will play the next video from an array ... but if user rotate the phone again in the landscape mode than we have to show the image that we were showing on the starting of the app . now what issue i have strike is ..... as i play video in the portrait made i have added some buttons to that window and make the window keywindow by the code and this buttons and the img shows on the above of the video

[[[UIApplication sharedApplication]keyWindow]addSubview:imgPortrait];

by this we are able to add the img view and some button that are on the imgview are added to the video window but as i click on any button to play a different video than it play the different video but it is unable to add the same buttons and the imgview that we have added on the first video.

than how could we do it

thanks for any help balraj verma