1
是否可以在UITextField的背景上顯示UIProgressView樣式的矩形? 只是喜歡Safari的網址欄加載網頁時顯示進度。是否可以在UITextField的背景上顯示UIProgressView樣式的矩形?
歡迎任何評論
是否可以在UITextField的背景上顯示UIProgressView樣式的矩形? 只是喜歡Safari的網址欄加載網頁時顯示進度。是否可以在UITextField的背景上顯示UIProgressView樣式的矩形?
歡迎任何評論
可以顯示任何看法,但不是作爲一個背景屬性,你可以像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