Questions tagged [cs193p]

CS193P is an iOS programming course offered at Stanford University. The latest Fall 2017 session videos, lecture slides and assignments are available on iTunes U, and have become a popular way of learning to program for the platform.

CS193P is an iOS () programming course offered at Stanford University. The latest Fall 2017 session videos, lecture slides, and assignments focus on iOS 11 and Swift 4 () and are available on iTunes U. This course has become a popular way of learning to program for the platform.

References:

173 questions
0
votes
1 answer

Issues about assignment 1 of CS193P

I have learnt first and second lesson of CS193P and finished the first assignment which asks me to make Matchismo flip through an entire deck of playing cards in random order, showing each card one at a time. Here's my code of…
reaton
  • 21
  • 4
0
votes
0 answers

IOS:CS193p fall2013 assignment2 task2:add a button to let user to restart the game

I am learning the course CS193P(IOS develop) on itunes and I just started assignment2. I got stuck on the task that asks me to restart the game. A little bit background on the project: I am writing code for the newly added action method for the…
Shawn Li
  • 99
  • 2
  • 13
0
votes
0 answers

Renamed XCode 5 project, reset file locations in File Inspector, cleaned up references, can't clean or compile

I'm working my way through Stanford's iOS CS193p course and I've made it to Assignment 6. Part of the assignment involves renaming a project from TopPlaces to TopRegions. I've done that, I've cleaned up the location references in File Inspector.…
iOSPadawan
  • 146
  • 2
  • 10
0
votes
0 answers

How can I check the size of my managed document/core data in code?

This question comes along as I'm doing one extra credit item for an assignment from the iTunes U Stanford cs193p course. The assignment basically requires an app that downloads photos and stores some relevant information in database using core…
Mr.DDD
  • 43
  • 5
0
votes
1 answer

App Crashes when I click Tab Bar Controller

I'm working my way through Stanford's iOS 7 course and I'm stuck at Task 1 on Assignment 4. I linked two scenes via CTRL + click to a Tab Bar Controller. I'll call them Scene A and Scene B. If I link Scene A first, the app loads and does what it's…
iOSPadawan
  • 146
  • 2
  • 10
0
votes
1 answer

iOS - Use the same gesture in multiple view

I'm newbie of iOS. I create a card game and set the card in UIView class. This is my storybook view. I want to use the swipe gesture in every card. I hope when I swipe one of the card, then the card will flip and show the suit and rank. May I set…
0
votes
1 answer

What is the standard(or correct) way to use UIManagedDocument in core data

I am learning iOS via Standford CS193P, I met a problem in core data part. I am trying to build an app using core data, I create a category for the AppDelegate(I will create a UIManagedDocument in didFinishLaunchingWithOptions), this category…
Leon
  • 1
  • 1
0
votes
2 answers

Can't get UIImage to draw to the card front on the SuperCard example in cs193p

I'm doing the ITunesU cs193p course. I'm trying to get the following code to draw the image to the card front, as shown in the example from SuperCard, but for some reason the image is not being drawn to the UIView. Some help would be…
user3284547
  • 105
  • 2
  • 11
0
votes
2 answers

MVC with view built in code

I've been trying to interpret the lessons from CS193P, and have a few questions. I'm building views in code, the way I do it is I have a UIView subclass where I put all the views in place in the init method. This class is initialized by the…
Lyck
  • 691
  • 1
  • 6
  • 18
0
votes
1 answer

Inheritance on view controller Objective c

I am trying to create a generic view controller and 2 other views which both will inherit from. Now this is the generic view (what i think is relevant - if something else is needed i will add it): @interface CardGameViewController () @property…
Itzik984
  • 15,968
  • 28
  • 69
  • 107
0
votes
1 answer

NSData initWithContentsOfURL Error

i'm trying to load an image from web. For initialize the Data i use this method: NSData *imageData = [[NSData alloc] initWithContentsOfURL:self.imageUrl]; but i get this error: [__NSCFString isFileURL]: unrecognized selector sent to instance…
Max_Power89
  • 1,710
  • 1
  • 21
  • 38
0
votes
2 answers

Explain recursive call possibly related to scope

I kind of understand recursion. We start on one method and it calls itself until it reaches its base case. Please help me understand how this code works. I know we are popping off an object off stack each time it is called we are returning a double…
Kendall
  • 17
  • 3
0
votes
1 answer

Assertion failure in UICollectionView when deleting

I keep getting an assertion failure when I try to delete cells from my UICollectionView. What I am doing a card game and when the cards match they are to be deleted. I made it so when they match I delete all the matched cards in the model and then…
user2076774
  • 405
  • 1
  • 8
  • 21
0
votes
1 answer

iOS: How to add toolbar or any footer below Table View?

I've followed the CS193p introduction course to objective C. I have now a grouped Table View, and my view controller is a CoreDataTableViewController (from the CS193p class), which is basically just a subclass of UITableViewController with the…
MichiZH
  • 5,587
  • 12
  • 41
  • 81
0
votes
0 answers

iOS CoreData: Linker Error even after adding it to target's build phases

I'm following the tutorial CS193p on itunes and running into a problem with the core data lesson. I've done everything exactly as in the demo (however for a slightly different app than in the lesson) and also included the CoreData Framework under…
MichiZH
  • 5,587
  • 12
  • 41
  • 81