开发者

Is it possible to display UIProgressView style rectangle on the background of UITextField?

Is it possible to开发者_JAVA百科 display UIProgressView style rectangle on the background of UITextField? Just likes Safari's url bar displayed the progress when loading web page.

Welcome any comment


You can display any view but not as a background property, you can addIt like a sub view.

May be you need UIActivityIndicatorView Class Reference

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

    [activityIndicatorView startAnimating];
    activityIndicatorView.frame = activityIndicatorFrame;

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

There is no such style rectangle for 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
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜