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
2
votes
3 answers

EXC_BAD_ACCESS upon simple iPhone app startup

Background: I'm trying out the "HelloPoly" assignment in the CS193P course. I've created my .xib file, and a custom Controller class. I haven't fleshed out any methods - I've only allowed IB to write the class files into xcode. Problem: Every single…
madchedar0
  • 43
  • 1
  • 6
2
votes
2 answers

How to apply striped fonts to special characters?

I am solving assignment #6 of 2013-2014 cs103p (however is not necessary to know the details of this assignment to answer). I have to implement (not the full version of) the set game, and display the cards in a collection of buttons. The symbols…
Ramy Al Zuhouri
  • 21,580
  • 26
  • 105
  • 187
2
votes
3 answers

Why does this NSUserDefaults key contain a dot?

I'm watching the lesson of standford CS193P, in particular the lecture n°7. I have some doubts about NSUserDefaults. This is the part of code : #define FAVORITES_KEY @"CalculatorGraphViewController.Favorites" -…
walle
  • 33
  • 1
  • 5
2
votes
2 answers

iOS - How to pass information from the VIEW to the Controller?

I am fairly new to programming in general, and have been following the CS193p videos on iTunesU. I am currently doing assignment 3, and am having trouble getting a bit of information from the View sent to the View Controller. I believe I have set…
zallanx
  • 21
  • 2
2
votes
2 answers

FetchedResultsController returning empty array

I have a fetchedResultsController using CoreDataTableView that I want to retrieve information from, the problem is that I am not getting any values from the fetchedresultsController, I believe that the values are stored into CoreDataProperly but I…
2
votes
1 answer

Why UILabel is not initialized?

The code is from Stanford CS193p. I added a NSLog to check it out. The label seems not being initialized. Any idea? @interface AskerViewController() @property (weak, nonatomic) IBOutlet UILabel *questionLabel; @property (weak,…
Philip007
  • 3,190
  • 7
  • 46
  • 71
2
votes
3 answers

Why won't my objective c implementation file recognize my import statement

Here is my header file #import #import #import @interface Controller : NSObject { IBOutlet UIButton *decreaseButton; IBOutlet UIButton *increaseButton; IBOutlet UILabel…
Jason
  • 17,276
  • 23
  • 73
  • 114
2
votes
2 answers

prepareForDeletion being called once when I call deleteObject: and a second time when I save

edited with extra information: I am using an app based on CoreDataTableViewController from cs193p. When I delete an instance of an entity called Position, the prepareForDeletion is called immediately. But when I call saveToURL, or when the database…
litov
  • 540
  • 5
  • 16
2
votes
2 answers

my app gets stuck when I call performFetch some times

I am using a CoreDataTableViewController from the Stanford course cs193p, and in my viewWillAppear I call self.fetchedResultsController = [[NSFetchedResultsController alloc] initWithFetchRequest:request …
litov
  • 540
  • 5
  • 16
1
vote
1 answer

I'm having trouble applying a solution found in SO in my iOS app. Can someone show me the big picture?

in the Stack Overflow posting: How do I create a global UIManagedDocument instance per document-on-disk shared by my whole application using blocks? Alan asked how to create a global UIManagedDocument to be used throughout his entire app. He…
JJW
  • 211
  • 3
  • 9
1
vote
2 answers

Trouble drawing CoreGraphics lines in drawRect() method

I'm working on the Stanford CS193p course and am trying to draw a graph. Drawing the axes works, but I can't draw the graph itself. I'm getting the message CGContextAddLineToPoint: no current point. when I try to draw. Here's the code. -…
MaxGabriel
  • 7,617
  • 4
  • 35
  • 82
1
vote
4 answers

CS193p-Adding backspace to a calculator

I recently started following the online course on iPhone development from Stanford University on iTunes U. I'm trying to do the homework assignments now for the first couple of lectures. I followed through the walkthrough where I built a basic…
lakshmen
  • 28,346
  • 66
  • 178
  • 276
1
vote
3 answers

Assignment 1 of CS193p

I recently started following the online course on iPhone development from Stanford University on iTunes U. I'm trying to do the homework assignments now for the first couple of lectures. I followed through the walkthrough where I built a basic…
lakshmen
  • 28,346
  • 66
  • 178
  • 276
1
vote
4 answers

iOS - Stanford CS193P Fall 2011 course, Assignment 2 descriptionOfProgram issue

Part of this assignment includes printing out on the display the current equation that is present to be solved, for that I use the following methods: + (NSString *)descriptionOfTopOfStack:(NSMutableArray *)stack { NSMutableString…
8vius
  • 5,786
  • 14
  • 74
  • 136
1
vote
2 answers

Accessing a stuct value within another stuct within another struct that is a generic in Swift

I'm trying to create a card game with Swift. My model is a struct called SetGame that holds an array of cards of type struct Card where one variable in Card is another struct called content which is of type CardContent that I set to a struct called…
1 2
3
11 12