jxd001 / swift-zhihudaily Goto Github PK
View Code? Open in Web Editor NEWZhihuDaily with Swift language
ZhihuDaily with Swift language
In most of your code, I think the most thing you do is to translate Objective-C to Swift.
Such as: you may use Swift's Dictionary type instead of NSDictionary of FoundationFramework.
And for request part. Why not just using AFNetwoking or some professional frameworks to do that but not writing some hardcode yourself. All the things you need to do is to write some wrapper files. After that these wrapper files can be used by many other guys who wanna use AFNetworking too!
I prefer to see not just translation from one lang to another, it's quite meaningless.
No offence, just some advices.
异常信息是 EXC_BAD_ACCESS(code=2,address=0x0),我运行的xocde版本是6.0.4
你好!请问知乎日报接口怎么拿到的?
UIImageViewWebExt.swift:
'URLWithString' is unavailable: use object construction 'NSURL(string:)'
SlideScrollView.swift:
'UIView has no member named tag'
/Users/patrick/Desktop/develop/Swift-ZhihuDaily/util/YRHttpRequest.swift:39:70: Extra argument 'error' in call?
怎么解决呢?
How do you find the api address of Zhihu daily, by some debug tools or something else?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.