国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 系統 > iOS > 正文

IOS代碼筆記之文字走馬燈效果

2019-10-21 18:53:50
字體:
來源:轉載
供稿:網友

本文實例為大家分享了IOS文字走馬燈效果具體實現代碼,供大家參考,具體內容如下

一、效果圖

ios文字走馬燈,ios走馬燈

二、工程圖 

ios文字走馬燈,ios走馬燈

三、代碼
RootViewController.h

#import <UIKit/UIKit.h>@interface RootViewController : UIViewController@end 

RootViewController.m

#import "RootViewController.h"#import "UXLabel.h"@interface RootViewController ()@end@implementation RootViewController- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil{  self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];  if (self) {    // Custom initialization  }  return self;}- (void)viewDidLoad{  [super viewDidLoad];  // Do any additional setup after loading the view.    UXLabel* label=[[UXLabel alloc] initWithFrame:CGRectMake(50, 100, 100, 30)];  label.backgroundColor=[UIColor redColor];  label.stringColor=CGRectMake(0, 0, 0, 1);  label.string=@"親愛的,你好嗎?";  label.stringFont=18.0;  [self.view addSubview:label];  [label updateLabel];}

以上就是本文的全部內容,希望對大家的學習有所幫助,也希望大家多多支持VEVB武林網。


注:相關教程知識閱讀請移步到IOS開發頻道。
發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 拉萨市| 金秀| 南京市| 宕昌县| 云安县| 永靖县| 大厂| 同江市| 汉阴县| 明溪县| 仪陇县| 延安市| 个旧市| 凤翔县| 滦平县| 咸阳市| 鲁山县| 高安市| 安新县| 黎平县| 星子县| 山东| 张家界市| 九江市| 莆田市| 库尔勒市| 南澳县| 双牌县| 连云港市| 柳江县| 湘潭县| 贵港市| 大渡口区| 吉隆县| 涡阳县| 凤城市| 南丹县| 富平县| 安岳县| 察雅县| 景泰县|