Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Right, this code is working fine in the simulator, and works fine until i enter more than say 20 characters in txtEnter.text:</p> <pre><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); } </code></pre> <p>I've tried your method Brad, but can't seem to get the (void) section to work properly.</p> <p>What my app does its fill the label with a message and then rotates them all to act like it's in landscape mode. Then what it does it scroll the label within a scrollview to act like a scrolling message across the screen.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload