我如何UIVIewcontroller从UIView.Actually 重新加载数据。实际上我有UIVIewController一个自定义类类。UIView现在UIViewcontroller我有一个标签,我需要打印标签中定义的值UIView。但是首先编译viewdidload的然后编译器移动到。那么我该如何打印或重新加载UIViewControllerUIViewUIVIewController
. UILabel Text我已经在ViewDidLoadofUIViewController和取自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 获取值