self.title = @"我是标题";
self.navigationController.navigationBar.prefersLargeTitles = YES;
-
(void)viewDidLoad {
[super viewDidLoad];UILabel * textView = [[UILabel alloc]initWithFrame:CGRectMake(0, 100, self.view.frame.size.width, 30)];
textView.text = @“八十多分卡是经典款拉屎的法师打发”;
[self.view addSubview:textView];[UIView animateWithDuration:3 delay:2 options:UIViewAnimationOptionRepeat animations:^{
//怎样的动画
textView.frame = CGRectMake(-self.view.frame.size.width, 100,self.view.frame.size.width , 30);} completion:^(BOOL finished) {
NSLog(@“动画结束”);
}];
}