Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8499353
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T00:38:36+00:00 2026-06-11T00:38:36+00:00

I have project that is giving me some headache and i think its because

  • 0

I have project that is giving me some headache and i think its because i need to learn by doing stuff and therefore i miss out on some fundamental stuff in iOS so don’t yell at me! :-).

I have a iOS iPad storyboard consisting of approx. 33-35 ViewControllers.
The concept is “the World” and you go down view by view till you hit the surface where i have a UIImage that is animated (25png at 1,7f duration).
Since presentModalView just overwrite the old view instead of pushing it up when the other view is coming in from the bottom i added the UIViewController+Transitions ( http://srooltheknife.blogspot.no/2012/03/custom-transition-animation-for-modal.html ) to also animate removal of the old view witch works perfect..
But, when i use this extra library whenever i use animations in a UIImageView all touch events seems to be disabled. I have tried the enableUserInteraction = YES on both the view, buttons, view but did not help.

Any Idea?

Here is the viewController that has the animation:

- (void)viewDidLoad
{
    [super viewDidLoad];

    NSLog(@"Main world view loaded....");
    NSLog(@"Bounds = %@", NSStringFromCGRect(self.view.bounds));
    //self.view.bounds = self.view.frame;
    NSLog(@"Bounds are now = %@", NSStringFromCGRect(self.view.bounds));
    self.view.clipsToBounds = YES;
    self.navigationController.navigationBarHidden = YES;
    self.view.userInteractionEnabled = YES;
    NSLog(@"User interaction is enabled?= %i", self.view.userInteractionEnabled);
    // Do any additional setup after loading the view, typically from a nib.
    NSMutableArray *images = [[NSMutableArray alloc] init];
    for (int i=1; i<=24; i++) {
        [images addObject:[UIImage imageWithContentsOfFile:[[NSBundle mainBundle] pathForResource:[NSString stringWithFormat:@"Untitled-%d", i] ofType:@"png"]]];
    }
    world.animationImages = images;
    world.animationDuration = 1.7;
    [world startAnimating];


    NSLog(@"Preparing audio");
    NSURL *audioURL = [NSURL fileURLWithPath:[[NSBundle mainBundle] pathForResource:@"mainWorldSound" ofType:@"wav"]];
    NSError *audioError;
    player = [[AVAudioPlayer alloc] initWithContentsOfURL:audioURL error:&audioError];
    if(audioError){
        NSLog(@"Error in audioplayer: %@", [audioError localizedDescription]);
    } else {
        AVAudioSession *audioSession = [AVAudioSession sharedInstance];
        [audioSession setCategory:AVAudioSessionCategoryPlayAndRecord error:NULL];
        player.numberOfLoops = -1;
        player.volume = 1.0;
        if([player isPlaying]){
            [player stop];
        }
        [player prepareToPlay];
        [player play];
        NSLog(@"Playing with volume: %f", player.volume);
    }


    [self.view setNeedsLayout];
    [self.view setNeedsDisplay];
}

So before this view is loaded i have 5 view controller that is just text and pictures with swipe event to go down.. This is the code to load the new ViewController (above) and animate it in:

- (IBAction)goToMainWorld:(id)sender {
    [self doVolumeFade];
    ViewController *mainWorld = [self.storyboard instantiateViewControllerWithIdentifier:@"mainWorld"];
    [self presentModalViewController:mainWorld withPushDirection:kCATransitionFromBottom];

}

To make thing easier to see i’m adding a screenshot from my storyboard..
Here (I’m not allowed to post pictures yet): enter link description here

I’ve also tried to modify the UIViewController+Transitions.m to use the navigationController
Default

[self presentModalViewController:modalView animate:NO];

To:

[self.navigationController presentModalViewcontroller:modal view animate:NO];

but if i do that it loads the first animated view controller fine, but all other is just the first view controller being re-animated if that make sense?

Sorry for my bad English!

If i need to provide more code please let me know! :-)..

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T00:38:37+00:00Added an answer on June 11, 2026 at 12:38 am

    Ok.. I’ve kind of figured it out myself and it seems like my technique of using views for each “view” was not suck a good idea..

    I had never seen UIScrollView and figured it was worth to try and seems like its the solution for me.

    MemoryVise its about the same, but i now get the transitions etc that Marketing wants.

    Only issue now is to get the sound to fade in and out for each ScrollView page and also control the sound in the second UIScrollView at the bottom seems to give me some headache.

    Thanks
    Regards
    Audun

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a project that using some third-party libraries. My questions is how to
I have a C# project where I include some resources which I need to
I have some Ant tasks in my Eclipse JDT project that I want to
I have an Android Library Project that contains several styles/themes defined in its styles.xml
I am using a Java Project that gives an user interface for doing some
In my current Java project, I have written a Java program that copies some
I have a project that may be started on local machine with ./manage.py runserver
I have a project that I have divided quite aggressively into different layers. I
I have a project that is displaying 16px text font at 0.5ems links on
I have a project that's been changed and modified in bits and pieces over

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.