Reverse values from UWP to swift-pages

Source: Internet
Author: User
Page 1 jumps to page 2, after page 2 Click button, the content of page 1 is changed. Actually using protocol (that is, interface in C #), convert page 1 viewcontroller to protocol incoming page 2 Viewcontroller, very similar to what we developed in C # will _ Viewcontroller into the interface into other custom controls, etc., is actually placed in page 2 a reference, in Swift this procedure is called a delegate, C # also. This idea should be an embodiment of interface-oriented programming, using interface to solve the coupling. I can now slowly understand that the Viewcontroller and xib in Swift are equivalent to the XAML and CS in the UWP, but we use MVC and MVVM in the UWP to encapsulate a layer of viewcontroller, This is purely the name of the two different languages, will make me a little dizzy. But from the perspective of learning Swift now, Viewcontroller is a very basic thing, mainly used to draw the interface and the pure UI, after the later function, it must be again lunar layer to do the UI logic of the package, is equivalent to the viewcontroller of MVVM in the UWP.

Reverse values from UWP to swift-pages

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.