Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
// MCTestViewController.m
// ClassNet
// Created by lzw on 15/3/26.
// Copyright (c) 2015年 lzw. All rights reserved.
#import "MCTestViewController.h"
@interface MCTestViewController ()
@property (nonatomic,strong) UITableView* tableView;
@implementation MCTestViewController
- (void)viewDidLoad {
[super viewDidLoad];
[self.view addSubview:self.tableView];
_tableView=[[UITableView alloc] initWithFrame:self.view.frame];
return _tableView;
- (void)didReceiveMemoryWarning {
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
return 1;
-(UITableViewCell*)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
UITableViewCell* cell=[[UITableViewCell alloc] init];
return cell;
-(CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath{
return 44;
// Row display. Implementers

This comment has been minimized.

Copy link
Owner Author

lzwjava commented Mar 26, 2015

import <UIKit/UIKit.h>

@interface MCTestViewController : UIViewController<UITableViewDataSource,UITableViewDelegate>


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.