TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: About to code iOS8 iPhone app but havn't done any iOS dev yet

2 点作者 basdevries将近 11 年前
I&#x27;m a front-end programmer and I mostly code in javascript. I&#x27;m doing a project right now in which none of my skills are needed and I offered to do the front-end of the app with the new Swift lang.<p>I&#x27;ve bought a new mac and an iOS dev account but I find the event handling pretty weird and I&#x27;m a little overwhelmed by all the features and specific way you need to set this up. In the project deadline I&#x27;ve included a timeframe for me to learn. What is the best way to do this? All help&#x2F;tips are appreciated.

5 条评论

moonlighter将近 11 年前
If you&#x27;re mostly familiar with JavaScript, I wouldn&#x27;t bother to learn Objective C now and continue to focus on Swift. You&#x27;re probably struggling more with Xcode and Interface Builder then with the Swift language itself. If you want to stick to JavaScript for that particular project, you might want to consider Appcelerator Titanium: <a href="http://www.appcelerator.com/titanium/" rel="nofollow">http:&#x2F;&#x2F;www.appcelerator.com&#x2F;titanium&#x2F;</a> which allows you to build iOS apps in JavaScript. It generates an Xcode project which compiles to native code; with the limitation being that you only have access to a subset of the vast cocoa and cocoa touch functionalities. Basically, if there&#x27;s a particular functionality available in iOS which doesn&#x27;t have a &#x27;stub&#x27; in Ti, you&#x27;re SOL (or need to find a 33rd party Ti module which might fill the gap).
评论 #7876360 未加载
评论 #7877639 未加载
ddv将近 11 年前
I would recommend learning Objective-C. For your first app, you&#x27;ll probably be doing a lot of Google and Stack-overflow searches and the vast majority of results and examples are in Objective-C.<p>I would also recommend picking up one of the Big Nerd Ranch iOS books [1] as I found them quite helpful. Good luck.<p>[1] <a href="http://www.bignerdranch.com/we-write/ios-programming.html" rel="nofollow">http:&#x2F;&#x2F;www.bignerdranch.com&#x2F;we-write&#x2F;ios-programming.html</a>
MrGando将近 11 年前
I disagree completely about the swift thing. It may look a bit like Javascript on the very surface, but it&#x27;s a whole different thing, if you know Javascript you know zero Swift ( except for syntactic sugar in the lambdas and declaring simple variables ).<p>Having said that, IMHO your best shot to get something done now would be Titanium or Phonegap.<p>Cheers.<p>Ps: Stay away from Swift until it&#x27;s solid and there are more learning resources.
评论 #7877793 未加载
评论 #7879120 未加载
jjellyy将近 11 年前
I would code it using Obj-C. There is exponentially more community and example code on the internet. The frameworks are the same between both languages so you can reuse most of what you learn from ObjC when you decide to do a Swift app.<p>I would highly recommend buying a book. APress makes excellent iOS books, this is how I learned. The latest one is called &#x27;Beginning iOS 7 Development Exploring the iOS SDK’
chrisBob将近 11 年前
I recommend starting with something small, perhaps even a simple game to get your feet wet. The build environment and the first time through the app approval process can be a little daunting, so starting with something simple might help. You can always remove an approved app if you don&#x27;t like it hurting your image.