Tag Archives: Apple

oAuth2 with iOS (part 2)

Within this post we continue working on the iOS app. For previous posts in this series, see here :).
Apple announced the second BETA for iOS8 last tuesday, and due to that, the devices I use for this example are upgraded to this second BETA.

Like before, all code can be found in GIT. The code like at the end of the project can be found here.

So, what are we going to do in this second part? First, we are going to create some basic functionality in the app to add a new demo. Second, we are going to write some tests, including some performance tests, to make sure everything works, even after we are modifying it to work with our network code (Which will be later in a next part). Creating tests for apps (And other code as well of course) is always a great idea. With the next xCode feature apple introduces in iOS8/xCode6 you can do lots of great stuff. I am going to use some of these features to do testing of this demo app.
In a other post, which is not within this series, but still interesting, I will explain how to use xCode server for continues integration with iOS8 and github, because that is (badly enough) not as straight forward as it can be.

Creating a new item in a core data model isn’t very difficult. Because we overwrite the Demo class anytime we generate it, that is not a good location to add it, isn’t it? well, it actually is, but we are adding a category for that demo class, and use that instead.
So lets create a new Cacao class, and name it Demo+Create. Last time, we had a problem creating a new category. This issue doesn’t seem to be fixed yet in the second BETA, so we need to do it by hand. Continue reading oAuth2 with iOS (part 2)

oAuth2 with iOS (part 1)

So, now we are finished with the Android app, we start with creating the iOS app. For previous posts in this series, see here :).
Currently, Apple announced iOS 8 with their new swift language and a new xCode on WWDC a few days ago. While I am not going to use Swift for this tutorial, I will use Xcode 6 and iOS 8. I haven’t tried any of this code on previous iOS/xcode versions, however I guess it should not be a issue.

Lets start with the basics. We will use the same approach as with the Android app. We have a local Database (In this case we use core data, more on that later on), a simple table view, and a few buttons to add or delete data.
To implement the Core Data stuff, I use some code from tutorials created by Paul Hegarty. I won’t be going very deep into the Core Data related stuff, it is explained very well by Paul.

All code and examples I provide here are tested/shown on a iPad mini retina or a iPhone 5S. Both have iOS 8 Beta 1.

Like with he Android app, all code can be found in GIT. The code like at the end of the project can be found here.

Continue reading oAuth2 with iOS (part 1)

Apple and the iPad

I have never been a fan of Apple products, and due to that I never really used a apple product (Ok, there might be a exception there, as I used for some time a ipod for music, but I still dont see that really as using it :P). Untill 2 weeks ago, from some client I got for the work I did a iPad (Instead of normal money :P) as thanks. Now I used it for 2 weeks or so I need to see I actually like it. Since last year I have been a Android fan, however Android has its problems, mostly due to the different companies using and mostly modifing, Android. On nearly every mobile phone or tablet the Android experience is different, the UI is different, and you have no idea if a App that is written for a specific Android version actually works on that device. With this iPad, I havent see yet any of the problems caused by the many Android devices that apps have. The apps just works (Ok, they still crash sometimes, but android apps do the same).
I need to say, iam surely impressed by the iPad with it current state when I compare it to Android. I still would not buy it myself, but it is not as bad at all as I had thought. My main concerns still are the required use of iTunes, what is not working at Linux at all, and thats my main OS, the kinda closeness of Apple, and the requirement to use a Apple thing to write apps. But I dunno, I might change opinions and move more to Apple if Android does not improvide.