Giter Site home page Giter Site logo

Comments (4)

tiago-g-henriques avatar tiago-g-henriques commented on June 2, 2024

By the way, I'm using the penultimate version of CoconutKit from the develop branch (commit 89da969).

from coconutkit.

defagos avatar defagos commented on June 2, 2024

I could reproduce the problem you describe (iOS 5.1.1), I will try to find some time to investigate it.

from coconutkit.

defagos avatar defagos commented on June 2, 2024

I finally found some time to investigate your issue.

I first tried to use CoconutKit binaries and it worked (see https://github.com/defagos/SegmentContainer). As always, that's why I strongly recommend using CoconutKit binaries. When a project is compiled from source the result might change with newer Xcode versions in unpredictable ways (in particular when project default settings are changed), and I sadly cannot afford spending too much time investigating such issues.

But your problem was interesting, and after playing around I found that setting Dead Code Stripping to NO for the SegmentContainer project fixes your issue. This seems to make sense, but I cannot tell you what exactly gets lost if dead code stripping is enabled (even after having a look at the binary).

Two more remarks regarding your code:

  • You should not access the view outlet in a view controller initializer since this will prematurely trigger view creation. In -[LifeCycleTestViewController initWithColor:], you should store the color you receive and assign it in the viewDidLoad method
  • You do not have to load xibs for iPhone / iPad manually. Append ~iphone or ~ipad to your xibs instead

I made those changes in the fork I made from your project, have a look if you are interested.

Regards.

from coconutkit.

tiago-g-henriques avatar tiago-g-henriques commented on June 2, 2024

Thanks for taking the time to look into this issue (and thanks for the bonus tips). I disabled dead code stripping in my project and that seems to have solved the problem with the package.

from coconutkit.

Related Issues (20)

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.