Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Conversation

@oliversa-msft
Copy link
Contributor

We removed the subclassed UIRoundedRectButton from UIButton.mm in commit (87dd17b). As a result, we need to remove the logic from Xib2Nib that relied on this class implementation

Fixes #1975

if (type) {
if (strcmp(type, "roundedRect") == 0) {
getAttrAndHandle("buttonType");
// TODO: Investigate why this value deviates from UIButtonType
Copy link
Contributor

@jaredhms jaredhms Feb 22, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

// TODO: Investigate why this value deviates from UIButtonType [](start = 11, length = 64)

is it trying to map to system? seems like an odd place to do it... #Closed

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i really hate all of the magic constants in this codebase :'(


In reply to: 102358850 [](ancestors = 102358850)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We'd have to crack open the NIB from iOS and inspect its values for various UIButton types to see if they align with UIButtonType*. Right now, I don't know if this value is correct - might be a legacy value or just a hack.


In reply to: 102358917 [](ancestors = 102358917,102358850)

@jaredhms
Copy link
Contributor

:shipit:

@oliversa-msft oliversa-msft merged commit 713e48e into microsoft:develop Feb 22, 2017
@oliversa-msft oliversa-msft deleted the oliversa/Issue1975 branch February 22, 2017 14:12
rajsesh pushed a commit to rajsesh/WinObjC that referenced this pull request Mar 1, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants