for (UITextField *txt in ViewPost.subviews)
{
if ([txt isKindOfClass:[UITextField class]])
{
if (txt.tag==index)
{
txt.text = appDelegate.answerDynamic;
[appDelegate.arrAnswer addObject:appDelegate.answerDynamic];
NSLog(@"%@",appDelegate.arrAnswer);
}
}
}
{
if ([txt isKindOfClass:[UITextField class]])
{
if (txt.tag==index)
{
txt.text = appDelegate.answerDynamic;
[appDelegate.arrAnswer addObject:appDelegate.answerDynamic];
NSLog(@"%@",appDelegate.arrAnswer);
}
}
}