cs193p – Assignment #6 Part #1

Please note, this blog entry is from a previous course. You might want to check out the current one.

You might have noticed that since the last post – finishing with the tasks of assignment #5 – nearly half a year has gone by. Partly, because I had to earn money … if you feel the need to help there, you are welcome to use the flattr or paypal buttons at the end of this post, or just buy one of my apps in the AppStore and write nice reviews. But mostly, I delayed this post because of the structure of this assignment … there is none … where all the other assignments were straight forward, and most of the tasks were separated from each other, the tasks of this assignment are interspersed with each other. I could not find a way to separate them in a sensible way. I tried, I failed …

I have got a couple of emails asking about the sixth assignment. My guilty conscience forces me to continue. WWDC starts any minute, I should try to finish before iOS 8 is available (to late … ).
Continue reading “cs193p – Assignment #6 Part #1”

FacebooktwitterredditpinterestlinkedintumblrmailFacebooktwitterredditpinterestlinkedintumblrmail

CocoaPods – Broken Specs Repository

If you are using CocoaPods and a recent pod install produced a strange result like:

$ pod install
Analyzing dependencies
[!] Pod::Executable pull
A	AAShareBubbles/1.0.2/AAShareBubbles.podspec
A	ABContactHelper/0.1/ABContactHelper.podspec
A	ABPadLockScreen/3.0.0/ABPadLockScreen.podspec
...
A	wpxmlrpc/0.4/wpxmlrpc.podspec
A	ym/1.2.6/ym.podspec
A	zipzap/6.0/zipzap.podspec
Pull is not possible because you have unmerged files.
Please, fix them up in the work tree, and then use 'git add/rm <file>'
as appropriate to mark resolution, or use 'git commit -a'.

resetting the repository might help:

$ pod repo remove master
$ pod setup
FacebooktwitterredditpinterestlinkedintumblrmailFacebooktwitterredditpinterestlinkedintumblrmail

cs193p – Lecture #14 – UIApplication, Network Activity Indicator, and Maps

Please note, this blog entry is from a previous course. You might want to check out the current one.

Lecture #14 starts with a follow up of the previous demo explaining parts of the code which had been posted differently.

The demo of this lecture continues with core data and pop overs.

The end of the lecture builds an introduction to core location including – new for iOS 7 – region-based monitoring and beacons.

The code for this lecture is available at gitub as well as from Stanford

The lecture as well as its slides are available via iTunes called “14. UIApplication, Network Activity Indicator, and Maps”.

FacebooktwitterredditpinterestlinkedintumblrmailFacebooktwitterredditpinterestlinkedintumblrmail

cs193p – Lecture #13 – Core Data and Table View

Please note, this blog entry is from a previous course. You might want to check out the current one.

Lecture #13 starts with an explanation of the “Final Project” which should only be interesting for Stanford students.

Then a short introduction to core-data table view controllers is followed by a detailed one-hour demonstration.

The code for this lecture is available at gitub (including changes added after the class) as well as from Stanford

The lecture as well as its slides are available via iTunes called “13. Core Data and Table View”.

FacebooktwitterredditpinterestlinkedintumblrmailFacebooktwitterredditpinterestlinkedintumblrmail

cs193p – Assignment #5 Task #11

Please note, this blog entry is from a previous course. You might want to check out the current one.

The list of recent photos should be saved in NSUserDefaults (i.e. it should be persistent across launchings of your application). Conveniently, the arrays you get back from the FlickrFetcher URLs are all property lists (once converted from JSON).

Create a new public instance method for the Flickr helper class to return the ID of the photo (again, it is not really complicated to get the ID but let’s keep everything Flickr related encapsulated inside the helper class):

+ (NSString *)IDforPhoto:(NSDictionary *)photo
{
    return [photo valueForKeyPath:FLICKR_PHOTO_ID];
}

Continue reading “cs193p – Assignment #5 Task #11”

FacebooktwitterredditpinterestlinkedintumblrmailFacebooktwitterredditpinterestlinkedintumblrmail

cs193p – Assignment #5 Task #10

Please note, this blog entry is from a previous course. You might want to check out the current one.

Your application must work in both portrait and landscape orientations on both the iPhone and the iPad. Use appropriate platform-specific UI idioms (e.g. don’t let your iPad version look like a gigantic iPhone screen).

Remove everything from the iPad storyboard. Add a new split view controller, but remove all of the controllers but the split view controller itself. Go to the iPhone storyboard. Copy everything and paste it to the iPad story board. Remove both segues to the image view controller. Make the tab-bar view controller the master of the split view controller. Embed the image view controller inside a navigation view controller and make this one the detail view of the split view controller. Finally disable the animation of the activity indicator of the split view:

cs193p – assignment #5 task #10 - iPad storyboard
cs193p – assignment #5 task #10 – iPad storyboard

Continue reading “cs193p – Assignment #5 Task #10”

FacebooktwitterredditpinterestlinkedintumblrmailFacebooktwitterredditpinterestlinkedintumblrmail