cool hit counter Comparison of using OC and swift in iOS development_Intefrankly

Comparison of using OC and swift in iOS development


Copyright: This is an original post by the blogger and may not be reproduced without the blogger's permission. https://blog.csdn.net/u010105969/article/details/80091729

Background.

In order to learn better, I decided to compare the swift and OC I learned.

Contrast.

1.Imported classes

OC: Some class has to be imported whenever it is to be used.

swift: If the user creates the class himself, other classes can be used directly without import. Some tripartite classes of the pod and some classes of the system need to be imported when using

2.Comply with the proxy methods in the protocol implementation agreement

OC:

Compliance agreements in OC swift:

Compliance protocols in swift

This post will continue to be updated, and may you all work less overtime for more pay, and have girlfriends for all gays and boyfriends for all lesbians.


Recommended>>
1、Captain wake up Wake up and build a strong civil aviation nation
2、Wheres the bank seat
3、The least favorite programming language for programmers
4、July 30 2018 Dongguan township procurement announcement establish and improve key pollution source files pollution source information database to provide a basis for strengthening the supervision of pollution sources
5、QQ login Im afraid Ive forgotten how many websites Ive logged into with QQ

    已推荐到看一看 和朋友分享想法
    最多200字,当前共 发送

    已发送

    朋友将在看一看看到

    确定
    分享你的想法...
    取消

    分享想法到看一看

    确定
    最多200字,当前共

    发送中

    网络异常,请稍后重试

    微信扫一扫
    关注该公众号