我想在一个方法中重新加载ViewdidLoad但现在想再次调用像[self viewDidLoad];
这可能吗?
我想在UITextView上使用addTarget:action,如on(UITextField或UIButton).
我想在UITextView上调用一个方法.
请给出一些可能的解决方案
谢谢...
UITextView *TXT_First_Tag = [[UITextView alloc] initWithFrame:CGRectMake(5, textPosY, 350, 65)];
TXT_First_Tag.backgroundColor = [UIColor whiteColor];
TXT_First_Tag.font = [UIFont fontWithName:@"Arial-BoldMT" size:30.0];
TXT_First_Tag.editable =YES;
TXT_First_Tag.tag = i;
TXT_First_Tag.textColor = [UIColor blackColor];
[TXT_First_Tag addTarget:self action:@selector(C6Loop) forControlEvents:UIControlEventEditingDidEnd]; // This Line I want to use, it's working fine on textfield...
[scrollview addSubview:TXT_First_Tag];
Run Code Online (Sandbox Code Playgroud)