cocoaui icon indicating copy to clipboard operation
cocoaui copied to clipboard

z-index attribute

Open llh2010 opened this issue 9 years ago • 5 comments

hi sir. can this library support z-index attribute on next version? it will make it more easy to do some lively works

llh2010 avatar Aug 10 '15 02:08 llh2010

Could you describe more details about your job?

ideawu avatar Aug 10 '15 04:08 ideawu

for more situation, we want to make a view above or under below to another view. surely we can use a traditional method like addsubview,but it is a lot of job obviously. i am thinking about that is it possible to use z-index like set:@"z-index:9999"

llh2010 avatar Aug 11 '15 00:08 llh2010

I see. I will think of implementing this feature, but you would better not expect it.

ideawu avatar Aug 11 '15 05:08 ideawu

这个特性很重要,希望能支持啊

hepking avatar Dec 01 '15 07:12 hepking

@llh2010 To add z-index feature needs enumerate each view's z-index property and sort them by comparing them then bring them to front one by one, you'd better use [UIView bringSubviewToFront] instead, it's also a pretty solution.

jayasme avatar Jul 07 '16 08:07 jayasme