Kosty_Fomin

Untitled

Feb 1st, 2014
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.34 KB | None | 0 0
  1. RadixViewController.h
  2.  
  3.  
  4. #import <UIKit/UIKit.h>
  5.  
  6. @interface RadixViewController : UIViewController
  7.  
  8. @property (weak, nonatomic) IBOutlet UILabel *output;
  9. @property (weak, nonatomic) IBOutlet UITextField *Number_textField;
  10. @property (weak, nonatomic) IBOutlet UITextField *System_textFiels;
  11.  
  12. @property (copy, nonatomic) NSString *UserNumber;
  13. @property (copy, nonatomic) NSString *UserSystem;
  14.  
  15. - (IBAction)InputNumber:(id)sender;
  16. - (IBAction)InputSystem:(id)sender;
  17.  
  18. @end
  19.  
  20.  
  21. RadixViewController.m
  22.  
  23.  
  24. #import "RadixViewController.h"
  25.  
  26. @interface RadixViewController ()
  27.  
  28. @end
  29.  
  30. @implementation RadixViewController
  31.  
  32. @synthesize UserNumber = _UserNumber;
  33.  
  34. @synthesize UserSystem = _UserSystem;
  35.  
  36. - (void)viewDidLoad
  37. {
  38. [super viewDidLoad];
  39. // Do any additional setup after loading the view, typically from a nib.
  40. }
  41.  
  42.  
  43. - (void)didReceiveMemoryWarning
  44. {
  45. [super didReceiveMemoryWarning];
  46. // Dispose of any resources that can be recreated.
  47. }
  48.  
  49. - (IBAction)InputNumber:(id)sender {
  50.  
  51. NSString *Number = self.Number_textField.text;
  52. int Num;
  53. Num=[ Number intValue];
  54.  
  55. NSLog(@"Number: %d ",Num);
  56.  
  57.  
  58. }
  59.  
  60. - (IBAction)InputSystem:(id)sender {
  61.  
  62. NSString *System = self.System_textFiels.text;
  63. int Sys;
  64. Sys=[ System intValue];
  65.  
  66. NSLog(@"Number: %d ",Sys);
  67.  
  68.  
  69. }
  70.  
  71. @end
Advertisement
Add Comment
Please, Sign In to add comment