2011-05-20 38 views

回答

0

可以顯示任何看法,但不是作爲一個背景屬性,你可以像ADDIT子視圖。

可能是你需要UIActivityIndicatorView Class Reference

UIActivityIndicatorView *activityIndicatorView =[[UIActivityIndicatorView alloc] 
                 initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleWhiteLarge]; 

    [activityIndicatorView startAnimating]; 
    activityIndicatorView.frame = activityIndicatorFrame; 

    [yourTextField addSubview:activityIndicatorView]; 
    [activityIndicatorView release]; 

沒有爲UIProgressView沒有這樣風格的矩形。

UIProgressViewStyle 
The styles permitted for the progress bar. 

typedef enum { 
    UIProgressViewStyleDefault, 
    UIProgressViewStyleBar, 
} UIProgressViewStyle; 
Constants 
UIProgressViewStyleDefault 
The standard progress-view style. This is the default. 
Available in iOS 2.0 and later. 
Declared in UIProgressView.h. 
UIProgressViewStyleBar 
The style of progress view that is used in a toolbar. 
Available in iOS 2.0 and later. 
Declared in UIProgressView.h. 
Discussion 
You can set and retrieve the current style of progress view through the progressViewStyle property. 

Availability 
Available in iOS 2.0 and later. 
Declared In 
UIProgressView.h 
相關問題