Tuesday 11 September 2012

How to use uiview in subviews in iphone sdk

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);
            }
        }

    }