Comments (5)
Hi, @leejinseong9410, you can use init(frame: CGRect), I suggest you not use init with a coder in this place.
from macaw-examples.
@leejinseong9410 님, init(frame: CGRect)를 사용하시면 됩니다. 이 곳에서는 init를 코더와 함께 사용하지 않는 것이 좋습니다.
I'm really sorry, but can I explain it in code?
from macaw-examples.
@leejinseong9410 님, init(frame: CGRect)를 사용하시면 됩니다. 이 곳에서는 init를 코더와 함께 사용하지 않는 것이 좋습니다.
I have a question. Is this possible on the iPhone app?
from macaw-examples.
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.
UIView(iOS 앱용 UIView의 MacawView 하위 클래스)에는 다른 이니셜라이저가 있으며 이 상황에서는 코더로 초기화하지 않고 프레임으로 초기화하는 것이 더 좋습니다.
`class SomeCustomView {
재정의 init(frame: CGRect) {
init actions here
super.init(frame: frame)
}
}let yourView = SomeCustomView(프레임: CGRect.zero) `
이런 식으로 뭔가
어떤 아이폰 OS 장치로 - 예, 아이폰이 작업을 수행 할 수 있습니다
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
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 macaw-examples.