Comments (5)
Hi,
I'm not sure that I completely understood your question, but I'll try and answer it anyway.
The way the library works is that you import a category of UIView called UIView (AUISelectiveBorder).
this category overrides the class method: +(Class) layerClass and sets the underlaying layer of any UIView to be AUISelectiveBordersLayer instead of a regular CALayer.
That way you can call selectiveBorderFlag on any UIView and it will work.
(Cool trick no? :) )
Did it answer your question?
On Feb 2, 2013, at 2:34 AM, nastyj wrote:
So if you have a
UILabel *leftLabel;
and you set it to have a left hand border
leftLabel.selectiveBorderFlag = AUISelectiveBordersFlagLeft;
leftLabel.selectiveBordersColor = [UIColor redColor];
leftLabel.selectiveBordersWidth = 3.0;but that label is a subview of a UIView then the left hand border never shows up
—
Reply to this email directly or view it on GitHub.
from auiselectivebordersview.
Hello, thanx for the open source work !
I've got the same problem, I'm trying to put some big red border for the left, right and bottom edge of my View.
It's working very well the right and bottom edge, but I don't have anything on the left border. Any idea ?
self.cellView.selectiveBordersColor = [UIColor redColor];
self.cellView.selectiveBordersWidth = 10;
self.cellView.selectiveBorderFlag = AUISelectiveBordersFlagBottom | AUISelectiveBordersFlagRight | AUISelectiveBordersFlagLeft;
from auiselectivebordersview.
I've got the solution in : AUISelectiveBordersLayer.m line 136-137,
Change :
CGPoint startPoint = CGPointMake(0-selectiveBordersWidth/2, 0);
CGPoint endPoint = CGPointMake(0-selectiveBordersWidth/2, CGRectGetMaxY(self.bounds));
for:
CGPoint startPoint = CGPointMake(selectiveBordersWidth/2, 0);
CGPoint endPoint = CGPointMake(selectiveBordersWidth/2, CGRectGetMaxY(self.bounds));
from auiselectivebordersview.
Hey Thomas, thanks for comment. I'll make the change soon.
Adam
On Thu, Mar 20, 2014 at 5:50 PM, Thomas Besnehard
[email protected]:
I've got the solution in : AUISelectiveBordersLayer.m line 136-137,
Change :
CGPoint startPoint = CGPointMake(0-selectiveBordersWidth/2, 0);
CGPoint endPoint = CGPointMake(0-selectiveBordersWidth/2,
CGRectGetMaxY(self.bounds));for:
CGPoint startPoint = CGPointMake(selectiveBordersWidth/2, 0);
CGPoint endPoint = CGPointMake(selectiveBordersWidth/2,
CGRectGetMaxY(self.bounds));Reply to this email directly or view it on GitHubhttps://github.com//issues/1#issuecomment-38184000
.
from auiselectivebordersview.
no prob ! thx for the open source work !!
from auiselectivebordersview.
Related Issues (4)
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 auiselectivebordersview.