You can make it with TextView like below:
You can make this by only IB like below:
##How to write text with angle on picture in objective c
Below code rotates the label
- (IBAction)rotate:(id)sender {
CGContextRef context = UIGraphicsGetCurrentContext();
[UIView beginAnimations:nil context:context];
[UIView setAnimationDuration:0.5];
[UIView setAnimationDelegate:self];
[UIView setAnimationDidStopSelector:@selector(endAnimation)];
##Speed of segue between ViewControllers
Below code is of custom segue, and you can set duration of transition in code.
- (void)perform
{
UIViewController *src = (UIViewController *) self.sourceViewController;
UIViewController *dst = (UIViewController *) self.destinationViewController;
[UIView transitionFromView:src.view
toView:dst.view
| ##Press and hold to make Image move | |
| With below code, you have to push 3 seconds to move _imageView, and then the image begins moving, and when you release the button, the image stops. | |
|  | |
| - (IBAction)pushToMove:(id)sender { | |
| [self performSelector:@selector(move) withObject:nil afterDelay:3.0]; | |
| } | |
| ##Setting progress of ProgressView while parsing XML | |
| First, count the number of lines. | |
| NSError *error = nil; | |
| NSString *xmlFileString = [NSString stringWithContentsOfURL:url | |
| encoding:NSUTF8StringEncoding error:&error]; | |
| _totalLines = [xmlFileString componentsSeparatedByString:@"\n"].count; | |
| Then, catch the progress in delegate method block. For example: |