GithubHelp home page GithubHelp logo

PeriodicTable issue about macaw-examples HOT 5 OPEN

exyte avatar exyte commented on July 20, 2024
PeriodicTable issue

from macaw-examples.

Comments (5)

amarunko avatar amarunko commented on July 20, 2024

Hi, @leejinseong9410, you can use init(frame: CGRect), I suggest you not use init with a coder in this place.

from macaw-examples.

leejinseong9410 avatar leejinseong9410 commented on July 20, 2024

@leejinseong9410 님, init(frame: CGRect)를 사용하시면 됩니다. 이 곳에서는 init를 코더와 함께 사용하지 않는 것이 좋습니다.

I'm really sorry, but can I explain it in code?

from macaw-examples.

leejinseong9410 avatar leejinseong9410 commented on July 20, 2024

@leejinseong9410 님, init(frame: CGRect)를 사용하시면 됩니다. 이 곳에서는 init를 코더와 함께 사용하지 않는 것이 좋습니다.
I have a question. Is this possible on the iPhone app?

from macaw-examples.

amarunko avatar amarunko commented on July 20, 2024

UIView (MacawView subclass of UIView for iOS apps) has different initializers, and in this situation better use not init with coder, but init with frame:

`class SomeCustomView {
override init(frame: CGRect) {
init actions here
super.init(frame: frame)
}
}

let yourView = SomeCustomView(frame: CGRect.zero) `

Something like this
Yes, it is possible to do this for iPhone - as any iOS device

from macaw-examples.

leejinseong9410 avatar leejinseong9410 commented on July 20, 2024

UIView(iOS 앱용 UIView의 MacawView 하위 클래스)에는 다른 이니셜라이저가 있으며 이 상황에서는 코더로 초기화하지 않고 프레임으로 초기화하는 것이 더 좋습니다.

`class SomeCustomView {
재정의 init(frame: CGRect) {
init actions here
super.init(frame: frame)
}
}

let yourView = SomeCustomView(프레임: CGRect.zero) `

이런 식으로 뭔가
어떤 아이폰 OS 장치로 - 예, 아이폰이 작업을 수행 할 수 있습니다

스크린샷 2021-08-07 오후 9 43 41

스크린샷 2021-08-07 오후 9 40 30

스크린샷 2021-08-07 오후 9 40 02

Hello
That's my current code.
I just changed the name of the variable in your code, but everything is the same. But nothing is going to work.
Also, "
Showing Recent Messages
Undefined symbol: Macaw.MacawView.init(node: Macaw.Node, frame: __C.CGRect) -> Macaw.MacawView" error has occurred and will not run. What did I do wrong? Thank you.

from macaw-examples.

Related Issues (8)

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.