首页 > 移动平台 > 详细

iOS 标题内容待定

时间:2015-12-04 12:40:56      阅读:292      评论:0      收藏:0      [点我收藏+]

UITableView:

UITableViewCell的声明文件。所包含的:

UIView控件(contentView,作为其它元素的父控件)  -- 容器

两个UILabel控件( textLabel,detailTextLabel)    -- 显示内容,详情

一个UIImage控件(imageView)           -- 图片

typedef NS_ENUM(NSInteger, UITableViewCellStyle) {
   //   左侧显示textlabel,imageView可选
    UITableViewCellStyleDefault,
   //   左侧显示textLabel,右侧显示detailTextLabel(默认蓝色),imageView可选
    UITableViewCellStyleValue1,        
   //   左侧依次显示textLabel和detailLabel,imageView
    UITableViewCellStyleValue2,        
    //   左上方显示textLabel,左下方显示detailTextLabel,imageView
    UITableViewCellStyleSubtitle    
};             

UIAlertController -- 弹出窗

    //创建弹出窗口
    UIAlertController *alertController = [UIAlertController alertControllerWithTitle:@"System Info" message: [contact getName] preferredStyle:UIAlertControllerStyleAlert];
    UIAlertAction *cancelAction = [UIAlertAction actionWithTitle:@"取消" style:UIAlertActionStyleCancel handler:nil];
    UIAlertAction *okAction = [UIAlertAction actionWithTitle:@"好的" style:UIAlertActionStyleDefault handler:nil];
    [alertController addAction:cancelAction];
    [alertController addAction:okAction];
    [self presentViewController:alertController animated:YES completion:nil];

 

iOS 标题内容待定

原文:http://www.cnblogs.com/wmx-rj/p/4915086.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!