Giter Site home page Giter Site logo

Comments (10)

adam-siton avatar adam-siton commented on May 26, 2024

Hi

No, this is not a problem, I sent several apps to the App Store with this code.

Great to hear that you find the. Ode useful.

Adam

Sent from my iPad

On 8 במרץ 2014, at 12:05, Simone Folador [email protected] wrote:

Hi, first of all thank you for your project. It's really handy.

I get this Warning: "Category is implementing a method which will also be implemented by its primary class" and it's related to the code:

+(Class) layerClass {
return [AUISelectiveBordersLayer class];
}
at line 29 in UIView+AUISelectiveBorder.m.

Do you think this could be a problem for App Store submission?


Reply to this email directly or view it on GitHub.

from auiselectivebordersview.

bagusflyer avatar bagusflyer commented on May 26, 2024

According to Apple's document, you should subclass instead of using category when you have this warning. But if subclass, you can't apply the effect to every UIView. (Actually not every UIView works).

from auiselectivebordersview.

adam-siton avatar adam-siton commented on May 26, 2024

Yes, Apple recommend not to use categories since it might cause problems
(in example it causes problem when you are using views who's underlying
layer is not a regular CALayer).
However, this is the only way to make this work for every UIView.

On Mon, Apr 7, 2014 at 12:36 PM, bagusflyer [email protected]:

According to Apple's document, you should subclass instead of using
category when you have this warning. But if subclass, you can't apply the
effect to every UIView. (Actually not every UIView works).

Reply to this email directly or view it on GitHubhttps://github.com//issues/2#issuecomment-39711565
.

from auiselectivebordersview.

last-Programmer avatar last-Programmer commented on May 26, 2024

This seems to be broken in ios8 beta...the category layerclass is not being called.

from auiselectivebordersview.

adam-siton avatar adam-siton commented on May 26, 2024

Thanks for the heads up. I'll make the adjustments.

On Wed, Jun 18, 2014 at 12:38 AM, rbmanian75 [email protected]
wrote:

This seems to be broken in ios8 beta...the category layerclass is not
being called.

Reply to this email directly or view it on GitHub
#2 (comment)
.

from auiselectivebordersview.

RomanTruba avatar RomanTruba commented on May 26, 2024

Be careful with that category, because all views in your applications will be selective-border layered. This can lead to performance issues

from auiselectivebordersview.

daniebruwer avatar daniebruwer commented on May 26, 2024

OK I can confirm that its not working in iOS8, any suggestions...?

from auiselectivebordersview.

cjgehinscott avatar cjgehinscott commented on May 26, 2024

So I haven't been able to get this code to work so I looked into alternatives and came across this repo https://github.com/natrosoft/NAUIViewWithBorders. I think it really depends on what you are trying to do that will dictate if this works for you. Personally I had a view that had about 9 or 10 UILabels/UITextFields/UITextViews that were displaying content to the user. What I ended up doing is I used the NAUIViewWithBorders subclass on UIView and put all of my labels/textfields/textviews inside of their own UIView and made each UIView have a clear color background and just set the borders on those views. This does not crash in iOS8 and because it's not using a category it's not causing every view to be subjected to the new implementation. Hope this helps. If you need code samples as to what it looks like or any other help feel free to reach out. Happy Coding!

from auiselectivebordersview.

adam-siton avatar adam-siton commented on May 26, 2024

Looks like +(Class) layerClass is not called for some views (specifically UILabel) on ios8.
I'll try and find a way to solve this.

from auiselectivebordersview.

gramx avatar gramx commented on May 26, 2024

On iOS 8.4 it runs for me, however the warning (Category is implementing a method which will also be implemented by its primary class) still exists.
I am new to objc so I do not understand why Apple would us a warning however from the comments it looks like its not an issue.
In other languages you can override your primary class methods with key words. Is it possible to do that here to avoid the compiler warning?

Update: Since categories work backwards to migrate the method I am not sure my last statement is still valid.

from auiselectivebordersview.

Related Issues (4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.