I started learning IOS development a month ago. Normally, I use a single View Application in order to develop my IOS application.
Now, I just need to test some features in objective c like polymorphism, encapsulation and inheritance. However, I don't know which xcode template I should use for that.
Could you help me please?
Sorry for this rookie question
Edit
In other words, I don't want to test those features on an IOS application. Instead, I need a template like the one you would recommend to a new c++ student.
Check below links. It will help to study all beginning level tutorials.
http://www.appcoda.com/ios-programming-course/
and for objective C testing. you can use commend Line tool.
Related
I'm looking to make an app which allows you to use Swift code within the app - similar to other Swift-based learning education apps to help you learn the language.
Is there a way to use the open source Swift code, for example, in any way to understand the syntax and possibly run the code for typed-in Swift code?
An example of an app I found on the App Store which can do this is called Sedona.
From GitHub apple/swift/.../Syntax there looks to be Swift syntax APIs, presumably for use by IDEs.
Am I looking in the wrong place?
Do these types of apps make their own Swift translator?
Is there some other way this is done?
Efficiency & optimization is not a priority, however would be a benefit.
It in no way needs to include very complex Swift.
Note: This is for an iOS app only, so Terminal commands would not work.
Just a few questions which I can't find answers to anywhere:
To code games for IOS using Sprite Kit, do you also need to know Objective-C or Swift?
Can you code high quality games without knowing Objective-C or Swift?
Thanks!
SpriteKit is an Apple framework developed for Objective-C / Swift application. So, yes you'll need at least some code basics notions.
"Yes". You might be able to develop game with Unity2D for example, but that would include using another language to write your scripts.
I'll try to expand a little bit previous answer.
SpriteKit is an Apple framework developed for 2D/3D games. It uses Swift or Objective-C. Advantage of using this is that you can be 100% sure that this game will work flawlessly on iOS devices. Disadvantage is that you are locked only to iOS devices. If you have 0 knowledge of Swift or Objective-C, and you wish only to develop for iOS, I would choose Objective-C. It seems a little harder to learn and understand, but compared to Swift to it seems that Objective-C is still (and will be for long time) superior to Swift. Although, it just be my personal preference, because I truly hate Swift. (You can achieve same things in both languages) :)
I started this way, I do not regret.
You can develop games and apps for iOS without knowledge of Objective-C or Swift. You can use programs like Unity, Unreal engine, Corona, Cocos2D/3D. However these programs require learning another language to write your game (c++ or something else). You can also use GameSalad for 2D games. It requires 0 coding, many things are drag and drop, but you do need to understand logic behind it. For example, it wouldn't be programming but it would be coding :)
GameSalad is easy to learn, fun as well, but forget that you will be able to create any serious game logic or more advanced game than 2D platform one. I tried it, but very soon changed to Objective C and XCode.
If you decide to go with learning actual language (which I would strongly suggest), I would recommend either Objective-C or to learn Ionic software. Ionic uses javascript, but when you learn how to make games/apps you can easily distribute it to ANY platform: iOS, Windows mobile, Android...XCode is better software, but learning Ionic has huge advantage, and that is single click to deploy app on any platform.
Good luck.
I want to start developing for Mac and iPhone. I'm familiar with Objective-C a little and found it pretty complicated. Besides, I'm not sure that it would be worthwhile to learn it.
So it is possible to develop for Mac/iOS without knowing Objective-C, what programming languages do I have to use then? C++, C?
I like Scala, Java, by the way.
You can use c and c++ but you can't make any application without using objective - c. Since you need to use native app controllers and libraries.
Also in starting you find it difficult to learn obj-c because of it's syntaxes but after using them you are going to love it. So don't be scared and learn obj-c.
You can use some frameworks (e.g aapcelerator, phone gap)
but they are unable to give result like native app.
There are many frameworks you can use, like Mono where you can use C# (http://xamarin.com/monotouch) or some frameworks with HTML5 (see Creating native iOS/Android apps from HTML5)
But at the end basic understanding of objective-c and it's architecture will help you.
Why not? !!
But for iOS Native Development, you should learn objective C.
And if you want to develop using any other languages, you should use some other frameworks.
Haven't you heard about Sencha, jqueryMobile ,monotouch etc?
Once you get the hang of it Objective-c is actually quite fun.
Download some iOS samples and step through the code, that will greatly help you.
Or just create an empty project like a "Master/Detail" tableview app and see how it works.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 5 years ago.
Improve this question
I've heard that apple drops a lot of app submissions due to their stiff terms.
I dont want to get too far with my project because i know that it will be hard
to rewrite it later.
Now i began rewriting it to Objective-C (from c++) because i got somehow the
impression that apple takes only pure objective-c code. In some places on the
net, people offers solutions in c\c++ for problems which cannot be solved
with objective-c which makes me kinda think rewriting again.
In order to clear things out, can someone please give me a direction to where can
i find those iphone-code-terms of apple?
You can use C++ or Objective C++ in an iPhone app for the AppStore. There's no problem with that. Obviously you'll need some Objective C or Objective C++ in order to present a UI to the user, but everything else can be straight C++ if you're so inclined. Many applications (particularly game ports) take this approach, using C/C++ code developed on other platforms, and 'wrapping' it in an Objective C shell.
You can use any language you like, provided it is compiled code. Interpreters are banned, which means no Python or Ruby... but you can use Lua, lisp, C, C++, Obj-C, Java (using something like gcj, not a JVM), D, Haskell, or anything else that can compile to ARM code or a static LLVM backend.
At least the SpeakHere sample application makes extensive use of C++. If that has, chances are that many sample apps do (and hence that your app may use C++/Objective-C++).
Objective C is a super set of C++, so it should be no problem if you use C++. The full terms and condition are at http://developer.apple.com/iphone which is a must for any iPhone developer. The SDK is part of the 99US$ membership and includes tools you will need, such as the iPhone simulator and tools to allow you to test your app on your real iPhone. Additionally, you will need this membership to submit your app to the appstore.
This question already has answers here:
What do I need to learn iPhone development offline? [closed]
(6 answers)
Closed 7 years ago.
I'm soon going to be starting some iPhone Development (3.0) building a simple app that communicates with a web service and uses push notification.
My Objective-C is pretty much non-existent but I've already got some good information from this question and also from Apple's development centre.
Basically if you've developed with the iPhone before what caveats/hints/pitfalls/tips/etc could you recommened in general?
Get "Cocoa Programming for Mac OS X by Aaron Hillegass" and go through the first half of the book. Get "Beginning iPhone Programming" after that and pay the $99 so you can run apps on your phone. There are a lot of design patterns in Objective C that are strange to begin with, but as you work more with them, they make sense.
One of the best things I found in the Hillegass book is his advice in the introduction: "assure yourself that you are not stupid and some things are hard".
I had great success getting started by diving into the Apple developer guides. I read the following:
Apple Objective-C guide, a good place to learn the basics
Apple Cocoa Fundamentals Guide
Apple iPhone Application Programming Guide
Spend time looking over the various examples, read the code, make changes, etc. Apple also has many good examples (outside the books) that you can learn a great deal from.
I agree, Cocoa Programming for Mac OS X by Aaron Hillegass is a great book to learn Cocoa, and it covers Obejctive-c nicely, but if you really want to KNOW the language, I would recommend:
Programming in Objective-C 2.0: http://www.amazon.com/Programming-Objective-C-2-0-Developers-Library/dp/0321566157
Both are fantastic books and nicely complement eachother.
Its very important to remember that other people are having a hard time learning Cocoa too. Reading Aaron's book is a fantastic way to start. Reading source code is also another great way. THere is some open source iPhone projects (for example: wordpress), and there a bunch for OS X. Read what other people are doing so you can get the flow of an application. I found that to be the hardest part about learning (especially the Cocoa part).
http://www.lynda.com/ is perfect for starting iOS, OSx development. The site takes you past the beginner status quickly.