Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

domness

macrumors 6502a
Original poster
Jan 14, 2008
651
26
Sheffield, UK
This is the code i am using:

Code:
- (IBAction)updateMessage:(id)sender
{


    //Animation coding

    //Put the message in a resize the label
    [lblMessage setText: txtEnter.text];
    [lblMessage sizeToFit];

    //Resize the scrolliew and change the width.
    scrollingTextView.contentSize = lblMessage.frame.size;
    float width = (lblMessage.frame.size.width) + (480);
    scrollingTextView.transform = CGAffineTransformMakeRotation (3.14/2);

    //Begin the animations
    [UIView beginAnimations:@"pan" context:nil];
    [UIView setAnimationDuration:durationValue];
    [UIView setAnimationRepeatCount:5];

    //Start the scrolling text view to go across the screen
    scrollingTextView.contentOffset = CGPointMake(width,0);
    [UIView commitAnimations];


    //General hiding and showing points.
    [txtEnter resignFirstResponder];
    [btnChange setHidden:NO];
    [txtEnter setHidden:YES];
    [btnUpdate setHidden:YES];
    [lblSpeed setHidden:YES];
    [lblBackground setHidden:YES];
    [backgroundColourControl setHidden:YES];
    [speedSlider setHidden:YES];
    [scrollingTextView setHidden:NO];
    [backgroundImg setHidden:NO];
    [toolbar setHidden:YES];

    [self.navigationController setNavigationBarHidden:YES animated:YES];

    //Depending on the choice from the segment control, different colours are loaded
    switch([backgroundColourControl selectedSegmentIndex] + 1) 
    { 
        case 1: 
                [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleBlackTranslucent animated:YES];
                break; 
        case 2: 
                [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleBlackOpaque animated:YES];
                break; 
        default: break; 
    }   

    btnChange.transform = CGAffineTransformMakeRotation (3.14/2);

}


What my app does is:

* Resizes a label with the message entered
* Turns the scrollview with this label 90 degrees
* Puts the label on the far right hand side
* Scrolls it across until the text has been scrolled fully
* Repeats from the beginning


It works fine in the simulator but on the iPhone, after say.. 20 characters have been added then the animations just doens't work. It glitches at the bottom of the screen for like 5 seconds and then goes away. Anything less than around 20 characters and it works fine.

Any ideas?

Here's the post on StackOverFlow so if you put a quick post on there i'll give you 100 reputation points for the answer.

http://stackoverflow.com/questions/5...ation-just-won

Cheers.

Anymore questions about the situation, please fire away. I need this sorting soon!
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.