iphone - Showing a subview temporary -
what trying achieve showing view during couple of seconds without user intervention. same effect ringer volume view appears when pressing volume controls on iphone:

i have scroll view image, taping in image, sound begin play, tap , pauses. implement above effect inform of action (showing play/pause images).
i hope have explained problem perfectly.
many help.
regards javi
assume have class inherited uiviewcontroller. can use code below:
const int myviewtag = 10001; const int myinterval = 1; // define time want view visible - (void)someaction { //this `ibaction` implementation [self showmyview]; [nstimer scheduledtimerwithtimeinterval:myinterval target:self selector:@selector(hidemyview) userinfo:nil repeats:no]; } - (void) showmyview { //you can use here view declared instance var uiview *myview = [[[uiview alloc] initwithframe:cgrectmake(100, 100, 120, 120)] autorelease]; myview.tag = myviewtag; [self.view addsubview:myview]; } - (void) hidemyview { //this selector called automatically after time interval finished [[self.view viewwithtag:myviewtag] removefromsuperview]; } you can add animations here question :)
Comments
Post a Comment