Hello,
I want to renew a subview which is created like this:
CGRect keyLabelRect = CGRectMake(2, [heightofrow intValue]*i, [breitescroller2 intValue]-2,[heightofrow intValue]);
UILabel *keyLabel = [[UILabel alloc] initWithFrame:keyLabelRect];
[Inhalt1 addSubview: keyLabel];
[keyLabel release];
By calling a method, "breitescroller2" got a new value and this term is called a second time and a third time and so on. My problem is, that the "older UILabel" with the old position stay at the view, but i want to replace it with the new position. Is there a simple method? by deleting the whole subview (keyLabel removeFromSuperView] the newer one's are deleted too.
Thanks for help!