-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathViewController.m
More file actions
45 lines (34 loc) · 757 Bytes
/
Copy pathViewController.m
File metadata and controls
45 lines (34 loc) · 757 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
//
// ViewController.m
// SampleCode
//
// Created by Johnil on 13-6-15.
// Copyright (c) 2013年 Johnil. All rights reserved.
//
#import "ViewController.h"
@interface ViewController ()
@end
@implementation ViewController
- (void)viewDidLoad
{
[super viewDidLoad];
self.view.frame = CGRectChangeHeight(self.view.frame, 10);
TestDelegate *t = [[TestDelegate alloc] initWithDelegate:self];
}
- (float)test1{
NSLog(@"return test1 value 1");
return 1;
}
- (void)test{
NSLog(@"call test");
}
- (id)test2:(float)test2{
NSLog(@"plus test2 with value 1");
return @(test2+1);
}
- (void)didReceiveMemoryWarning
{
[super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated.
}
@end