内射老阿姨1区2区3区4区_久久精品人人做人人爽电影蜜月_久久国产精品亚洲77777_99精品又大又爽又粗少妇毛片

iOSLabel隨字自動(dòng)變大效果

一、效果圖。

成都創(chuàng)新互聯(lián)公司基于成都重慶香港及美國(guó)等地區(qū)分布式IDC機(jī)房數(shù)據(jù)中心構(gòu)建的電信大帶寬,聯(lián)通大帶寬,移動(dòng)大帶寬,多線BGP大帶寬租用,是為眾多客戶提供專業(yè)成都服務(wù)器托管報(bào)價(jià),主機(jī)托管價(jià)格性價(jià)比高,為金融證券行業(yè)服務(wù)器托管,ai人工智能服務(wù)器托管提供bgp線路100M獨(dú)享,G口帶寬及機(jī)柜租用的專業(yè)成都idc公司。

iOS Label隨字自動(dòng)變大效果

二、工程圖。

iOS Label隨字自動(dòng)變大效果

三、代碼。

RootViewController.h

#import <UIKit/UIKit.h>
//添加HPGrowingTextView頭文件
#import "HPGrowingTextView.h"

@interface RootViewController : UIViewController
<HPGrowingTextViewDelegate>
{
 HPGrowingTextView *textView;
}

@end

RootViewController.m

- (void)viewDidLoad
{
 [super viewDidLoad];
 // Do any additional setup after loading the view.
 
 
 
 textView = [[HPGrowingTextView alloc] initWithFrame:CGRectMake(10, 100, 240, 40)];
 textView.isScrollable = NO;
 textView.contentInset = UIEdgeInsetsMake(0, 5, 0, 5);
 textView.minNumberOfLines = 1;
 textView.maxNumberOfLines = 6;
 // you can also set the maximum height in points with maxHeight
 // textView.maxHeight = 200.0f;
 textView.returnKeyType = UIReturnKeyGo; //just as an example
 textView.font = [UIFont systemFontOfSize:15.0f];
 textView.delegate = self;
 textView.internalTextView.scrollIndicatorInsets = UIEdgeInsetsMake(5, 0, 5, 0);
 textView.backgroundColor = [UIColor greenColor];
 textView.placeholder = @"Type to see the textView grow!";
 [self.view addSubview:textView];
 
 
 
 
}

以上就是本文的全部?jī)?nèi)容,希望對(duì)大家的學(xué)習(xí)有所幫助,也希望大家多多支持創(chuàng)新互聯(lián)。

網(wǎng)頁(yè)名稱:iOSLabel隨字自動(dòng)變大效果
網(wǎng)站路徑:http://www.rwnh.cn/article16/gopegg.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供外貿(mào)建站軟件開發(fā)、品牌網(wǎng)站建設(shè)ChatGPT、電子商務(wù)、網(wǎng)站營(yíng)銷

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來源: 創(chuàng)新互聯(lián)

成都網(wǎng)站建設(shè)公司
长治市| 通河县| 陕西省| 巫山县| 旺苍县| 喜德县| 年辖:市辖区| 贵州省| 裕民县| 宜阳县| 婺源县| 海伦市| 福州市| 桑日县| 康平县| 昌江| 巫溪县| 大丰市| 永安市| 哈尔滨市| 冷水江市| 阿克陶县| 巧家县| 马鞍山市| 河间市| 张掖市| 永新县| 邹城市| 镇原县| 大石桥市| 齐齐哈尔市| 高台县| 天祝| 宜君县| 庆元县| 绥滨县| 佛教| 曲沃县| 锦州市| 昭平县| 维西|