Comments (3)
@johnsd have you found the answer? I also need work it with UITextView
from rqshinelabel.
It's possible since the plugin is relying on attributeText
property of UILabel
which UITextView
also has, I am thinking of rewriting this plugin in Swift 2.0, and by taking advantage of extension/protocol we can avoid lots of code duplication.
In the meantime, you can just copy RQShineLabel.h/m and change the subclass UILabel to UITextView, (perhaps also change ShineLabel to ShineTextView 😉) Things should just work.
from rqshinelabel.
Thanks! I done it with change sublacss to UITextView and add some property for mutableAttributedString(because without it i cann't change font family, font size and alignment in my controller)
[mutableAttributedString addAttribute:NSFontAttributeName
value:self.typeSizeFont
range:NSMakeRange(0, mutableAttributedString.length)];
NSMutableParagraphStyle *paragraphStyle = [[NSMutableParagraphStyle alloc] init];
paragraphStyle.lineBreakMode = NSLineBreakByWordWrapping;
paragraphStyle.alignment = NSTextAlignmentCenter;
[mutableAttributedString addAttribute:NSParagraphStyleAttributeName
value:paragraphStyle
range:NSMakeRange(0, mutableAttributedString.length)];
from rqshinelabel.
Related Issues (17)
- Not working with IBOutlets HOT 3
- First Line Alignment Error HOT 2
- How to implement this with swift?
- Repeat the shine with a button
- found some bugs with _fadeoutDuration HOT 4
- Manual Installation
- Repeat the animation HOT 2
- Positioning in Landscape causes issues HOT 1
- Here is a working SWIFT example: Auto change text with timer HOT 2
- Incorrect value is used? HOT 1
- Can not add package dependency to project
- trying to do animation after fadeout completion but not work. HOT 4
- iOS8 issue HOT 1
- Color of text? HOT 1
- about memory handle HOT 6
- fadeoutDuration HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rqshinelabel.