Guest User

Untitled

a guest
May 23rd, 2018
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ViewController.h
  2.     #import "MainMenu.h"
  3.     {
  4.         UIImage *image;
  5.         MainMenu *_MainMenu;
  6.     }
  7.     @property (nonatomic, retain) UIImage *image;
  8.     @property (nonatomic, retain) MainMenu *_MainMenu;
  9.  
  10. ViewController.m
  11.     @synthesize image;
  12.     image = [[UIImage alloc] initWithFrame...];
  13.     [self.view addSubview: image];
  14.    
  15.     _MainMenu = [[MainMenu alloc] initWithFrame...];
  16.     [self.view addSubview: _MainMenu];
  17.  
  18.  
  19.  
  20. MainMenu.h
  21.     {
  22.         UIButton *button;
  23.     }
  24.     @property (nonatomic, retain) UIButton *button;
  25.  
  26. MainMenu.m
  27.     @synthesize button;
  28.    
  29.     -(id)initWithFrame {...};
  30.  
  31.     -(UIImage)buttonAction:(UIImage)img {
  32.         //ta funkcja ma pobierać image z vievcontroller, ma cos z nim robić i go zwracać. niestety nie wiem jak go wczytać, bo przycisk jest w innej klasie.
  33.  
  34.     return img;
  35.     }
Add Comment
Please, Sign In to add comment