我如何UIVIewcontroller
从UIView
.Actually 重新加载数据。实际上我有UIVIewController
一个自定义类类。UIView
现在UIViewcontroller
我有一个标签,我需要打印标签中定义的值UIView
。但是首先编译viewdidload
的然后编译器移动到。那么我该如何打印或重新加载UIViewController
UIView
UIVIewController
. UILabel Text
我已经在ViewDidLoad
ofUIViewController
和取自UIView
类的值中定义了
那么如何重新加载UIViewController
.
我正在做的是:
UIVIewController (thirdTab) 类
-(void)viewDidLoad{
[self reloadInputViews1];
}
-(void)reloadInputViews1{
appDelegate = (AppDelegate *)[[UIApplication sharedApplication] delegate];
// labelPrint.text=appDelegate.dayPrint;
[self.labelPrint setText:labelPrint.text];
}
UIView类
- (void)drawRect:(CGRect)rect {
AppDelegate* appDelegate = (AppDelegate *)[[UIApplication sharedApplication] delegate];
appDelegate.dayPrint=theDate;
NSLog(@"appde%@",appDelegate.dayPrint);
[appDelegate.thirdTab reloadInputViews1];
}
但这不起作用......我无法在标签中打印值。如何做到这一点..从 UIViews 获取值