Revision 626466303239 () - Diff

Link to this snippet: https://friendpaste.com/5qjvoz33ZALaEYDJRb20L8
Embed:
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
#import <UIKit/UIKit.h>

@interface DemoViewController : UIViewController
{
}

@property (nonatomic , retain) NSNumber *number;

- (IBAction)touchUpInsideButton:(id)sender;

@end


#define MAX_RANGE 1000

@implementation DemoViewController

@synthesize number;

- (IBAction)touchUpInsideButton:(id)sender
{
NSNumber *num = [NSNumber numberWithInteger:rand() % MAX_RANGE];
number = num;
}

@end