What I'm wanting to do is take the users input in myTextView and display 1 through the number they input on myLabel. For some reason this isn't working... I'm frustrated because it's not easy assigning objects to traditional variable types like int, etc. Please don't over complicate the code if you can help me out. Thanks!
I have this inside an action of button touch up inside btw...
I have this inside an action of button touch up inside btw...
Code:
NSString *ValueOfTextField; //object to hold myTextView.text
ValueOfTextField = myTextView.text; //assigning value
for (int i = 1; i <= [ValueOfTextField intValue]; i++) {
myLabel.text = myLabel.text && "@\n" && ValueOfTextField;
}