public class UIProgressView extends UIView
NoIntrinsicMetric
Constructor and Description |
---|
UIProgressView(int UIProgressViewStyle)
Initializes and returns an progress-view object.
|
Modifier and Type | Method and Description |
---|---|
void |
drawRect(CGRect rect)
This method is implicitly called when a view is first displayed or when
an event occurs that invalidates a visible part of the view and the view
needs to be redrawn.
|
float |
progress()
Returns a float number that ranges from 0 to 1 and represents the current
progress shown on the bar.
|
UIColor |
progressTintColor()
Returns the color that fills the progress bar.
|
int |
progressViewStyle()
Returns the style of this progress bar.
|
void |
setProgress(float val)
Sets the current progress shown on the bar using a floating number that
ranges from 0 to 1.
|
void |
setProgressTintColor(UIColor progressTintColor)
Sets the color that fills the progress bar.
|
void |
setProgressViewStyle(int UIProgressViewStyle)
Sets the graphical style of this progress bar.
|
void |
setTrackTintColor(UIColor trackTintColor)
Sets the color that is used for the remaining part of the progress bar.
|
UIColor |
trackTintColor()
Returns the color that is used for the remaining part of the progress
bar.
|
accessibilityIdentifier, addConstraint, addConstraints, addGestureRecognizer, addLayoutGuide, addSubview, alpha, animateWithDuration, animateWithDuration, animateWithDuration, areAnimationsEnabled, autoresizesSubviews, autoresizingMask, backgroundColor, bottomAnchor, bounds, bringSubviewToFront, center, centerXAnchor, centerYAnchor, clipsToBounds, constraints, contentCompressionResistancePriorityForAxis, contentHuggingPriorityForAxis, contentMode, convertPointFromView, convertPointToView, convertRectFromView, convertRectToView, didAddSubview, didMoveToSuperview, didMoveToWindow, frame, gestureRecognizers, heightAnchor, hitTest, insertSubview, insetsLayoutMarginsFromSafeArea, intrinsicContentSize, invalidateIntrinsicContentSize, isHidden, isMultipleTouchEnabled, isOpaque, isUserInteractionEnabled, layer, layoutIfNeeded, layoutMargins, layoutMarginsDidChange, layoutMarginsGuide, layoutSubviews, leadingAnchor, leftAnchor, maskView, needsUpdateConstraints, nextResponder, overrideUserInterfaceStyle, pointInside, preservesSuperviewLayoutMargins, removeConstraint, removeConstraints, removeFromSuperview, removeGestureRecognizer, removeLayoutGuide, requiresConstraintBasedLayout, restorationIdentifier, rightAnchor, safeAreaInsets, safeAreaLayoutGuide, sendSubviewToBack, setAccessibilityIdentifier, setAlpha, setAnimationBeginsFromCurrentState, setAnimationCurve, setAnimationDelay, setAnimationDuration, setAnimationRepeatAutoreverses, setAnimationRepeatCount, setAnimationsEnabled, setAnimationStartDate, setAutoresizesSubviews, setAutoresizingMask, setBackgroundColor, setBounds, setCenter, setClearsContextBeforeDrawing, setClipsToBounds, setContentCompressionResistancePriority, setContentHuggingPriority, setContentMode, setFrame, setGestureRecognizers, setHidden, setInsetsLayoutMarginsFromSafeArea, setLayoutMargins, setMaskView, setMultipleTouchEnabled, setNeedsDisplay, setNeedsLayout, setNeedsUpdateConstraints, setOpaque, setOverrideUserInterfaceStyle, setPreservesSuperviewLayoutMargins, setRestorationIdentifier, setTag, setTintAdjustmentMode, setTintColor, setTransform, setTranslatesAutoresizingMaskIntoConstraints, setUserInteractionEnabled, sizeThatFits, sizeToFit, subviews, superview, tag, tintAdjustmentMode, tintColor, tintColorDidChange, topAnchor, toString, trailingAnchor, transform, transitionWithView, translatesAutoresizingMaskIntoConstraints, updateConstraints, updateConstraintsIfNeeded, userInterfaceLayoutDirection, viewForFirstBaselineLayout, viewForLastBaselineLayout, widthAnchor, willMoveToSuperview, willMoveToWindow, willRemoveSubview, window
becomeFirstResponder, isFirstResponder, resignFirstResponder, touchesBegan, touchesCancelled, touchesEnded, touchesMoved
addObserver, observeValueForKeyPath, performSelector, performSelectorOnMainThread, release, removeObserver, removeObserver, retain, setValueForKey, setValueForUndefinedKey, valueForKey, valueForUndefinedKey
public UIProgressView(int UIProgressViewStyle)
UIProgressViewStyle
- A constant that specifies the style of the
object to be created. See UIProgressViewStyle for descriptions of the
style constants.UIProgressViewStyle
public void setProgress(float val)
val
- The current progress of the bar.public float progress()
public int progressViewStyle()
UIProgressViewStyle
public void setProgressViewStyle(int UIProgressViewStyle)
UIProgressViewStyle
- The graphical style of this progress bar.UIProgressViewStyle
public void setTrackTintColor(UIColor trackTintColor)
trackTintColor
- The color that is used for the remaining part of
the progress bar.public UIColor trackTintColor()
public void setProgressTintColor(UIColor progressTintColor)
progressTintColor
- The color that fills the progress bar.public UIColor progressTintColor()
Copyright © 2020. All rights reserved.