Skip to content

iOS TabView Icon rendering mode set wrong #1148

Closed

Description

@rclai

renderingMode on UIImage is a read-only property: https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIImage_Class/#//apple_ref/occ/instp/UIImage/renderingMode

As a result of this the icon will always be gray on the tab view on iOS.

You guys are trying to set it here, but it doesn't work:

is.ios.renderingMode = UIImageRenderingMode.UIImageRenderingModeAlwaysOriginal;

The correct way is to use imageWithRenderingMode.

Activity

  1. added a commit that references this issue on Nov 24, 2015
    477d001
  2. modified the milestone: on Nov 25, 2015
  3. N3ll commented on Nov 25, 2015

    @N3ll
    Contributor

    @rclai : we tested your code and the result was - icons with their original colors. But the tabs did not change when you switch among them. The only way the user to know that a certain tab is chosen is by looking at the content inside the tabs, which is not very convenient. Is this what you were trying to achieve or are missing something?

  4. lock commented on Aug 30, 2019

    @lock

    This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

  5. locked and limited conversation to collaborators on Aug 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions