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

Android 自定義彈出框實現(xiàn)代碼

 更新時間:2016年08月16日 11:14:57   作者:情深雨蒙  
這篇文章主要介紹了Android 自定義彈出框實現(xià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 自定義彈出框實現(xiàn)代碼,希望對大家有所幫助,如果大家有任何疑問請給我留言,小編會及時回復大家的。在此也非常感謝大家對腳本之家網(wǎng)站的支持!

相關文章

最新評論

仙游县| 平定县| 铜陵市| 舞阳县| 富平县| 武乡县| 虞城县| 万宁市| 汾阳市| 浏阳市| 青州市| 牡丹江市| 德化县| 政和县| 乡城县| 广东省| 西乡县| 峡江县| 广南县| 大城县| 克山县| 仪征市| 海南省| 南汇区| 黑山县| 龙里县| 西藏| 九江市| 汽车| 乌兰察布市| 永胜县| 宜兰市| 万山特区| 德惠市| 容城县| 永靖县| 禹州市| 无锡市| 景德镇市| 玉溪市| 神池县|