宽度设置 字体大小与颜色 动画效果

 1 CGSize height = self.view.bounds.size.height;
 2 CGSize width = self.view.bounds.size.width;
 3 CGFloat height = self.bounds.size.height;
 4 CGFloat weight = self.bounds.size.width;
 5 
 6 // 设置文字居中
 7 self.titleLabel.textAlignment = NSTextAlignmentCenter;
 8 // 设置字体大小
 9 self.titleLabel.font = [UIFont systemFontOfSize:10];
10// 设置文字颜色
 11[attrs setObject:[UIColor blackColor] forKey:UITextAttributeTextColor];
//动画效果
CATransition *anim = [CATransition animation];
anim.duration = 0.15;
anim.type = kCATransitionPush;
anim.subtype = kCATransitionFromRight;
//向左滑动 向历滑动
kCATransitionFromRight:kCATransitionFromLeft

 

 
 
 
 
 
posted @ 2013-08-02 10:57  wangzhenxiang  阅读(262)  评论(0编辑  收藏  举报