I have been working on my application for a while now. I am stuck on this small problem: setting my text field's text isn't working.The string of the text field is called from another viewcontroller Here is what my code looks like:
1st view controller -(void)setURL:(NSURL *)src { downloadSourceField.text = src; } 2nd view controller
if ([[booksArray objectAtIndex:indexPath.row] isEqual:[NSString stringWithFormat:@"%@",song_1]])
{
NSString *sc1 = [NSString stringWithFormat:@"tst 1"];
[tc setURL:sc1];
}
else
{
NSString *sc = [NSString stringWithFormat:@"test 2"];
[tc setURL:sc];
}