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

table view controller cs193p iTunesU 9 lesson

Hi I'm studying a 9TH lesson of iTunesU CS193P about table view and compiler report me this error NSInternalInconsistencyException', reason: '-[__NSCFArray removeObjectAtIndex:]: mutating method sent to immutable object' my simulator is iPad 6.1 so…
walle
  • 33
  • 1
  • 5
0
votes
1 answer

unrecognized selector sent to instance for Paul Hegarty's CS193P

I'm following Paul Hegarty's CS193P course video (lecture #4 @ 1:05:40 mark) and ran into problems. Please help debug this 'unrecognized selector sent to instance' error. The view has three objects - see image…
TaniOS
  • 3
  • 2
0
votes
1 answer

Xcode provisioning profile issues when trying to run applications on a iOS device

I'm following the excellent Stanford CS193P course (Fall 2011) on iTunes U: http://www.stanford.edu/class/cs193p/cgi-bin/drupal/downloads-2011-fall I'm trying to run my application (Calculator) from Xcode 4.2 with iOS 5 on my iPhone 3GS with iOS…
Pascal
  • 85
  • 8
0
votes
3 answers

stanford cs193p - PrintIntrospectionInfo - section 4 assignment 1b

I'm having trouble with section 4 of the stanford iphone class on assignment 1b. I am having trouble understanding how I will build the array and what the assignment expects. Should the array be a "global" variable? Where should I define that? Will…
Neo42
  • 642
  • 3
  • 10
  • 31
0
votes
1 answer

New XCode is proving problematic for Stanford CS 193P

I am working through the CS 193P course from 2011 from Stanford University and much of the code is not working. When I updated to the new XCode, none of the button segues I program work and trying to implement a scroll view today went interestingly.…
Mitaka Jin
  • 15
  • 3
0
votes
1 answer

Why Paul Hegarty says not to change NSFetchedResultsController @properties?

Overview: Stanford iOS tutorials contains an implementation (header + implementation file) to help use the table view while using core data. Link - http://www.stanford.edu/class/cs193p/cgi-bin/drupal/downloads-2011-fall File Name -…
DanSkeel
  • 3,853
  • 35
  • 54
0
votes
2 answers

Calculator brain walkthrough minus operation

I've been using the Stanford videos as a tool for learning iOS programming. I have a question about the "-" operation. The walk through explains that for this part of code the order of operands has to be correct. I don't get how this piece of codes…
user1295568
  • 53
  • 1
  • 2
  • 8
0
votes
2 answers

iOS - Getting information from the View Controller to drawRect in the View

My question relates to Assignment 3 in CS193p. Im having a terrible time getting drawRect in my View to receive information passed from my View Controller. Basically, my goal is to pass view-specific information (like self.view.size.width) to the…
daspianist
  • 5,336
  • 8
  • 50
  • 94
0
votes
1 answer

How do I verify the contents returned from a queue match the UITableView cell they were intended for?

I'm new to iOS development and this is my first question on stackoverflow even though I come here a lot. Thanks for such a great resource! I'm taking the Stanford CS193P course and having trouble with "assignment 5 extra credit 1". I have a…
Dan
  • 631
  • 6
  • 20
0
votes
3 answers

Stanford cs193p Fall 2011 course made a mistake in lecture 9?

In lecture 9, the teacher said that numberOfSectionsInTableView: method returns 1 by default, but when I created my own project, I found that it returns 0 by default, and that made my table view cell disappeared! I found where the problem was and…
longbow
  • 362
  • 2
  • 14
0
votes
2 answers

Photo instances fetched into memory when app launched?

The code is from Stanford iOS developing course's Photomania app. Basically I want to know when instances of Photo entity are actually fetched into memory (or context). Is that happen when the factory method defined here is called in a table view…
Philip007
  • 3,190
  • 7
  • 46
  • 71
0
votes
1 answer

Using a property as a count in Objective C

I am new to Objective C. I was following Stanford lectures 2011-12 fall on iOS development and in assignment 1 it asks to implement a decimal point in a calculator. This is what my implementation looks like: #import…
stud91
  • 1,854
  • 6
  • 31
  • 56
0
votes
1 answer

No visible declaration error when the declaration is there, Objective c

Hi I am getting the the error "No visible @interface for 'CalculatorBrain" declares the selector 'runprogram:usingVariableValues:'" at the graphPoint.y code part -(id) programToGraph:(GraphingView *)sender{ CGPoint graphPoint; for( int x…
Terrel Gibson
  • 481
  • 1
  • 6
  • 21
0
votes
1 answer

iOS RPNCalculatorStanfordVidOne can't figure out why all but one line is working

I am 100% brand new to iOS. I am watching Stanford U's videos online to learn iOS. I spent hours slowly going through the second video meticulously ensuring I didn't goof on a line of code. Everything was perfect until - Wouldn't ya know it - the…
Shades
  • 285
  • 2
  • 3
  • 15
0
votes
2 answers

Can i do the initialization in a method?

For example, i got a method like this: - (void)addToRecents:(NSDictionary *)photo { NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults]; NSMutableArray *recents = [[defaults objectForKey:@"RecentPhotos"] mutableCopy]; …
dsfdf
  • 106
  • 2
  • 7
1 2 3
11
12