mrcrow / mroundedbutton Goto Github PK
View Code? Open in Web Editor NEWUIControl subclass like iOS 7 Phone app button
License: MIT License
UIControl subclass like iOS 7 Phone app button
License: MIT License
Firstly, thanks for an amazing control, it is very useful. I have one concern, before using it in production: when I tap the button (a MRoundedButtonCentralImage) it shows it has been tapped by inverting the colours, and making the button background white. How can this be only momentary, i.e when I release my finger from the button it goes back to its original state? Thanks for your help in advance!
Hi, thanks for the great control. I'm using this button as a like/unlike button - and I need to progammatically check if the user has previously liked the photo, and if so I must display the highlighted version of the button. However
[likeButton setHighlighted:YES];
does nothing.
Hi
I am getting the following exception "Prefix attribute must be followed by an interface or protocol" using XCode 6.1 is anyone else experiencing this issue ?
Thanks,
Michael
It would be really awesome with support for storyboards and nibs. I guess that have to be to implement initWithCoder.
I'd like a function to set the style, or be able to set runtime attributes to set the style of the button. Right now I'd have to programatically make the button to set the style.
It would be nice to have intrinsicContentSize implemented too, and then it will work for Autolayout.
I'm having a problem when using MRoundedButton in an iOS8 today extension. Sometimes the button would immediately deselect itself upon selection. I found that setSelected
being called twice, is what's causing it. It's set to "YES" when beginTrackingWithTouch
is called and then set to "NO" when endTrackingWithTouch
is called. Additionally I found that sometimes beginTrackingWithTouch
is called twice. I'm assuming this is an iOS8 bug. For now I commented out the code that performs the selection in the methods:
beginTrackingWithTouch
continueTrackingWithTouch
endTrackingWithTouch
and I'm performing the selection manually in my action method by calling [sender setSelected:YES]
or NO depending on the situation and it seems to be working fine.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.