国产探花免费观看_亚洲丰满少妇自慰呻吟_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開發頻道。
發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 广德县| 林芝县| 津南区| 舒兰市| 和平县| 满洲里市| 拉孜县| 彰武县| 荥经县| 建平县| 资中县| 屯门区| 定边县| 阿巴嘎旗| 广丰县| 随州市| 新丰县| 台州市| 泗阳县| 昌都县| 运城市| 长寿区| 宝鸡市| 建湖县| 民和| 肥城市| 治多县| 花莲县| 诏安县| 沾化县| 阳江市| 即墨市| 宣恩县| 保德县| 巧家县| 南阳市| 遂溪县| 勐海县| 凤庆县| 昌宁县| 泸定县|