Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ViewController.h
- #import "MainMenu.h"
- {
- UIImage *image;
- MainMenu *_MainMenu;
- }
- @property (nonatomic, retain) UIImage *image;
- @property (nonatomic, retain) MainMenu *_MainMenu;
- ViewController.m
- @synthesize image;
- image = [[UIImage alloc] initWithFrame...];
- [self.view addSubview: image];
- _MainMenu = [[MainMenu alloc] initWithFrame...];
- [self.view addSubview: _MainMenu];
- MainMenu.h
- {
- UIButton *button;
- }
- @property (nonatomic, retain) UIButton *button;
- MainMenu.m
- @synthesize button;
- -(id)initWithFrame {...};
- -(UIImage)buttonAction:(UIImage)img {
- //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.
- return img;
- }
Add Comment
Please, Sign In to add comment