Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 09-17-2010, 02:48 AM   #1 (permalink)
Registered Member
 
Join Date: Sep 2009
Posts: 18
Stan92 is on a distinguished road
Default Subview call Parent method and remove the subview

Hi,
I display a modal View with a transparent background.
this is my code.
PHP Code:
        if (!mv) {
            
mv=[[MvPersonsViewContoller allocinit];
        }
            
        
CGRect frame mv.view.frame;
        
frame.origin.y=20;
        
mv.view.frame=frame;
        [[[
self tabBarControllerviewaddSubview:mv.view];
        
CATransition *animation = [CATransition animation];
        [
animation setDelegate:self];
        [
animation setType:kCATransitionMoveIn];
        [
animation setSubtype:kCATransitionFromTop];
        [
animation setDuration:0.75];
        [
animation setTimingFunction:[CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseInEaseOut]];
        [[
mv.view layeraddAnimation:animation forKey:kCATransition]; 
This subview contains a datePicker with a "Done" button, and I would like to
back to the main view when the user taps on the button.
I mean, I need to remove the subview and get the selected date.

I read some posts about protocol, but I have no clue how to implement it.

Also, I have 2 questions about this "modal popup".
My app uses a tabBarController and a NavigationController.
If I don't use this line
frame.origin.y=20;
when the popup appears, the tabBarController legends "overlay" the popup background.
The other question, is about to hide the "popup" when the user will tap on the button.....
How could I have the same animation to hide the popup (from top to bottom).

I thank you in advance for your help.

Stan
Stan92 is offline   Reply With Quote
Reply

Bookmarks

Tags
parent, popup, subview

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 307
16 members and 291 guests
2ndSegment, cayladv57, cgokey, dermotos, djohnson, Domele, Hamad, heshiming, linkmx, markuschow, pungs, Rudy, Sloshmonster, teebee74, v1n2e7t
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,655
Threads: 94,116
Posts: 402,889
Top Poster: BrianSlick (7,990)
Welcome to our newest member, pungs
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 10:58 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0