Comments (9)
能具体点吗?
from swift_100days.
你可以试着运行下Day3的工程,数据方面应该是有点问题,didSet里面的没有调用,还有TextField的Action事件拖动也是没有反应的。你试着运行看下就知道啦。
from swift_100days.
我这边没问题啊 你确定顶上topField有值吗?
from swift_100days.
恩,TopField刚才是忘记输入值了。还有一个疑问请教下:init方法设置的初始化值在Label上没有显示,Label的值是在拖拽的UISlider的时候才更新的。
from swift_100days.
没怎么看懂 因为拖拽的UISlider时候才赋值的
from swift_100days.
tipModel = TipModel.init(tipCount: "15%", topPrice: "$0.00", totalPrice: "0.00")
这句话中设置的数字,实际在关于Label初始化显示的时候,应该是没有起到作用吧。因为didSet方法应该是在拖拽UISlider时候赋值,然后才Label的值才更新的。
from swift_100days.
是的
from swift_100days.
好的。谢谢啦。刚开始学Swift,有的问题比较浅显,见谅哈。谢谢你的耐心解答。
from swift_100days.
有闲暇时间就会解答的,我也是刚开始学,共勉~
from swift_100days.
Related Issues (2)
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 swift_100days.