Code Monkey home page Code Monkey logo

Comments (9)

Nododo avatar Nododo commented on May 26, 2024

能具体点吗?

from swift_100days.

lanfeng0706 avatar lanfeng0706 commented on May 26, 2024

你可以试着运行下Day3的工程,数据方面应该是有点问题,didSet里面的没有调用,还有TextField的Action事件拖动也是没有反应的。你试着运行看下就知道啦。

from swift_100days.

Nododo avatar Nododo commented on May 26, 2024

我这边没问题啊 你确定顶上topField有值吗?

from swift_100days.

lanfeng0706 avatar lanfeng0706 commented on May 26, 2024

恩,TopField刚才是忘记输入值了。还有一个疑问请教下:init方法设置的初始化值在Label上没有显示,Label的值是在拖拽的UISlider的时候才更新的。

from swift_100days.

Nododo avatar Nododo commented on May 26, 2024

没怎么看懂 因为拖拽的UISlider时候才赋值的

from swift_100days.

lanfeng0706 avatar lanfeng0706 commented on May 26, 2024

tipModel = TipModel.init(tipCount: "15%", topPrice: "$0.00", totalPrice: "0.00")
这句话中设置的数字,实际在关于Label初始化显示的时候,应该是没有起到作用吧。因为didSet方法应该是在拖拽UISlider时候赋值,然后才Label的值才更新的。

from swift_100days.

Nododo avatar Nododo commented on May 26, 2024

是的

from swift_100days.

lanfeng0706 avatar lanfeng0706 commented on May 26, 2024

好的。谢谢啦。刚开始学Swift,有的问题比较浅显,见谅哈。谢谢你的耐心解答。

from swift_100days.

Nododo avatar Nododo commented on May 26, 2024

有闲暇时间就会解答的,我也是刚开始学,共勉~

from swift_100days.

Related Issues (2)

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.