tags:

views:

23

answers:

2

hi i am new to iphone. what i did is cretaing a view with progress bar with IBOutlet,when ever i rotate the view to landscape mode it is not rotatetd. So i need to cretae progress bar programatically. how can i done this pls post some code thank u .

A: 
UIProgressView *progressView = [[UIProgressView alloc] init];
progressView.frame = CGRectMake(100,100,100,20);
[self.view addSubview:progressView];

Should get you started.

I would read up on views and view controllers in Apple's documentation. The View Programming Guide for iPhone OS goes into quite a bit of detail for what you want to do. If you have not read the iPhone Application Programming Guide and the iPhone Development Guide I would do so first.

All of these documents are available on developer.apple.com, and also in the help system of Xcode.

Brad Smith
A: 

you have to set the property of size in IB then is't work fine see in below imagealt text

this work for both orientations

priyanka