最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

Android 自定義彈出框?qū)崿F(xiàn)代碼

 更新時(shí)間:2016年08月16日 11:14:57   作者:情深雨蒙  
這篇文章主要介紹了Android 自定義彈出框?qū)崿F(xiàn)代碼的相關(guān)資料,非常不錯(cuò),具有參考借鑒價(jià)值,需要的朋友可以參考下

廢話不多說(shuō)了,直接給大家上關(guān)鍵代碼了。

- (void)viewDidLoad
{
[super viewDidLoad];
// Do any additional setup after loading the view.
[self showAlertView:@"11111"];
}
//自定義彈出框
-(void)showAlertView:(NSString *)strTipText
{
UIView *showView=[[UIView alloc]init];
[showView setFrame:CGRectMake(100, 100, 120, 35)];
[showView setAlpha:0.0f];
[showView setBackgroundColor:[UIColor blackColor]];
[showView setClipsToBounds:YES];
[[showView layer]setMasksToBounds:YES];
[[showView layer]setCornerRadius:5.0f];
UILabel *lblTips=[[UILabel alloc]init];
[lblTips setFrame:CGRectMake(0, 0, 120, 35)];
[lblTips setText:strTipText];
[lblTips setTextAlignment:NSTextAlignmentCenter];
[lblTips setTextColor:[UIColor whiteColor]];
[lblTips setBackgroundColor:[UIColor clearColor]];
[lblTips setFont:[UIFont boldSystemFontOfSize:16]];
[showView addSubview:lblTips];
[self.view addSubview:showView];
[UIView animateWithDuration:0.5f delay:0.0f options:UIViewAnimationOptionCurveLinear animations:^{
showView.alpha=1.0f;
}completion:^(BOOL finished){
[UIView animateWithDuration:1.0f delay:1.0f options:UIViewAnimationOptionCurveLinear animations:^{
showView.alpha=0.0f;
}completion:^(BOOL finished){
;
}];
}];
}

以上所述是小編給大家介紹的Android 自定義彈出框?qū)崿F(xiàn)代碼,希望對(duì)大家有所幫助,如果大家有任何疑問(wèn)請(qǐng)給我留言,小編會(huì)及時(shí)回復(fù)大家的。在此也非常感謝大家對(duì)腳本之家網(wǎng)站的支持!

相關(guān)文章

最新評(píng)論

江阴市| 白河县| 白沙| 中西区| 蒙自县| 桂东县| 河北省| 莱阳市| 巴南区| 涞水县| 抚州市| 谷城县| 邵东县| 吴堡县| 商洛市| 夏津县| 宜宾市| 和平县| 株洲市| 胶南市| 乐安县| 阜康市| 札达县| 永福县| 诏安县| 沛县| 南澳县| 胶州市| 新巴尔虎右旗| 东安县| 青铜峡市| 三台县| 洛南县| 泊头市| 涪陵区| 海南省| 河北省| 青河县| 宁乡县| 织金县| 乌鲁木齐市|