Hi there
My UIProgressView is going to the top right hand corner of the main view - even though I set it as a subview of a UIView (which in turn is a subview of the main view). And even if I setFrame:
.
Any ideas?
if(downloadBar == nil){
downloadBar = [[UIProgressView alloc] initWithFrame:CGRectMake(10, 10, 200, 10)];
}
[downloadBar setProgressViewStyle:UIProgressViewStyleDefault];
[downloadBar setProgress:([download downloadStatus]/100.0f)];
[downloadView addSubview:downloadBar];
// download view initialisation
// this is initalised BEFORE the download bar
downloadView = [[UIView alloc] initWithFrame:CGRectMake(10, 10, 300, 300)];
[downloadView setBackgroundColor:[UIColor lightGrayColor]];
[self.view addSubview:downloadView];
[downloadView retain];
Thanks