iOS 标题内容待定

UITableView:spa

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

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

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

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

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

UIAlertController -- 弹出窗it

    //建立弹出窗口
    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];
相关文章
相关标签/搜索