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 06-14-2011, 04:14 PM   #1 (permalink)
learner2011
 
Join Date: Mar 2011
Posts: 115
ashwinr87 is on a distinguished road
Default Problem after Animating and bringing in a Subview in ipad

So, here is what I am doing...

I have a split view controller in my Ipad app, in which the detail views has subviews which are UITableView's. The functionality I am trying to implement is to get an info view at the same position of a subview when a button(info button) on the subview is pressed. I need to get this info view by animation and that animation is that when the info button is pressed, that subview alone would flip (UIAnimationOptionFlipFromRight) and the info view would show...

This is how I implement it -

Code:
-(void) showInfoView: (id)sender
{
    if (ovController == nil)

    {
        // Set a notification to dismiss it later

        [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(helpInfoDone:) name:@"closeMedicationHelpInfo"  object:nil];


        ovController = [[OverlayViewController alloc] initWithNibName:@"ViewViewController" bundle:[NSBundle mainBundle]];
        ovController.status = @"HelpInfo";
        ovController.podName = @"Medication";
        ovController.view.backgroundColor = [UIColor clearColor];


        [UIView transitionWithView:self.view duration:1
                           options:UIViewAnimationOptionTransitionFlipFromRight 
                        animations:^{
                            [self.view addSubview:ovController.view];
                            [self.view bringSubviewToFront:ovController.view];
                        } 
                        completion:nil];

    }
}
Here I am using ovController as a "container" and my info view is a subview to ovController.

Using the above piece of code, I am able to get the info view as the subview to the UITableView but press down and move my finger up, the info view also moves and part of the UITableView which is not covered by the info view is seen. I am unable to figure out why this happens because when I add the info view as the sub view, it should not allow me to perform any action on the UITableView which is below this subview and so it should not allow me to scroll up or down but that is what is happening here.

It would be great if someone could help me out in this. Also let me know if anyone feels I am unclear on my question.
ashwinr87 is offline   Reply With Quote
Reply

Bookmarks

Tags
ios, ipad, uianimation, uitableview

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: 314
6 members and 308 guests
chemistry, Dnnake, iOS.Lover, lendo, Leslie80, pbart
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,664
Threads: 94,120
Posts: 402,898
Top Poster: BrianSlick (7,990)
Welcome to our newest member, Leslie80
Powered by vBadvanced CMPS v3.1.0

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