Skip to content

Instantly share code, notes, and snippets.

#import <UIKit/UIKit.h>
@interface ViewController : UIViewController
@property (weak, nonatomic) IBOutlet UILabel *helloLabel;
@end
#import "ViewController.h"
#import "TESTClass001.h"
@interface ViewController ()
@end
@implementation ViewController
- (void)viewDidLoad {
#import <Foundation/Foundation.h>
@interface TESTClass001 : NSObject
@property (strong) NSString *strongProperty;
@property (weak) NSString *weakProperty;
@end
@protocol UITableViewDataSource<NSObject>
@required
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section;
// Row display. Implementers should *always* try to reuse cells by setting each cell's reuseIdentifier and querying for available reusable cells with dequeueReusableCellWithIdentifier:
// Cell gets various attributes set automatically based on table (separators) and data source (accessory views, editing controls)
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath;
@protocol UITableViewDelegate<NSObject, UIScrollViewDelegate>
@optional
// Display customization
- (void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath;
- (void)tableView:(UITableView *)tableView willDisplayHeaderView:(UIView *)view forSection:(NSInteger)section NS_AVAILABLE_IOS(6_0);
- (void)tableView:(UITableView *)tableView willDisplayFooterView:(UIView *)view forSection:(NSInteger)section NS_AVAILABLE_IOS(6_0);
- (void)tableView:(UITableView *)tableView didEndDisplayingCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath*)indexPath NS_AVAILABLE_IOS(6_0);
#import "TEST001ViewController.h"
@interface TEST001ViewController ()
@end
@implementation TEST001ViewController
- (void)viewDidLoad {
[super viewDidLoad];
#import <UIKit/UIKit.h>
#import "TEST001TableView.h"
@interface TEST001ViewController : UIViewController <UITableViewDelegate>
@property (weak, nonatomic) IBOutlet TEST001TableView *test001TableView;
@end
#import <Foundation/Foundation.h>
@interface TESTClass002 : NSObject
@property (nonatomic) NSString *firstProperty;
@end
#import "ViewController.h"
#import "TESTClass002.h"
@interface ViewController ()
@end
@implementation ViewController
- (void)viewDidLoad {
#import <Foundation/Foundation.h>
@interface TESTClass002 : NSObject
@property (atomic) NSString *firstProperty;
@end