PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Thursday, September 29, 2022

[FIXED] Why can't I use UIProgressViewStyle.bar in tvOS?

 September 29, 2022     tvos, uikit, uiprogressview     No comments   

Issue

I'm writing a tvOS app using Xcode 9.2, targeting tvOS 11.

I have a UIProgressView and I'm trying to set it's style to .bar but Xcode says ".bar is not available".

How can I use the .bar style for the UIProgressView on my tvOS app?


Solution

The style bar of UIProgressView is only defined in the iOS SDK. It is defined as __TVOS_PROHIBITED in UIKit:

typedef NS_ENUM(NSInteger, UIProgressViewStyle) {
    UIProgressViewStyleDefault,     // normal progress bar
    UIProgressViewStyleBar __TVOS_PROHIBITED,     // for use in a toolbar
};

Also described like that in the documentation: https://developer.apple.com/documentation/uikit/uiprogressviewstyle/1619835-bar

Bar Style Documentation



Answered By - David Cordero
Answer Checked By - Candace Johnson (PHPFixing Volunteer)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing