I have UIViewadded to my xib file. Connect the inspector correctly.
UIView
In the viewDidLoad:method, I hide it and on some pressed button, showing it.
viewDidLoad:
Here is my code:
.h file
@property (nonatomic, retain) IBOutlet UIView *subView;
in viewDidLoad::
_subView.hidden = YES;
Hides this view correctly, but when you click a button, it does not appear.
- (IBAction)customerInvoice:(id)sender { //self->_subView.hidden = NO; _subView.hidden = NO; }
Using both methods, it does not appear. Please help me solve the problem.
( xCode) IBOutlets/IBAction, , , , .
Apple , / IBOutlet, , , :
@property (nonatomic, weak) IBOutlet UIView *subView;
:
@property (weak, nonatomic) IBOutlet UIView *select_image_uiview;
"":
- (IBAction)cancel_choose_view:(id)sender { _select_image_uiview.hidden=YES; }
Source: https://habr.com/ru/post/1530433/More articles:Dictionary does not recognize floating point keys - pythonConnecting a command line in code through a browser link - asp.net-mvcAndroid application will not display in Android Studio Emulator - javaTwo problems when writing to .WAV - C ++ - c ++The video outline freezes my iOS application at some point - memory-managementConvert integer to binary array with suitable complement - pythonWhy doesn't Java Webapps have 2 web contexts? - javaCreate a visual studio solution from code - c #Оператор использования Doctrine @InheritanceType ( "JOINED" ) - symfonyWhat is * materialized * double? - c #All Articles