Tuesday, April 16, 2019

Revised iBooks

Link to a revised book that includes Chapter (3)A and more pages.

http://mobileapps1819.svctestudents.org/materials/1219117996.ibooks.zip

Universal App Icon Sizes

developer.apple.com/library/content/qa/qa1686/_index.html

Search for "Figure 3"

Compare against the AppIcon set in your version of Xcode


Creating and Exporting iOS Icons

  1. Create your icon in Adobe Illustrator.
    1. The icon should be square: 400x400, 1024x1024, etc. Same height and width.
  2. Use "Export for Web (Legacy)" to export each different size to PNG
  3. Sizes: 20, 40, 60, 80, 120, 180
    1. More sizes: 29, 58, 87
    2. More sizes: 76, 152, 167
    3. App store sizes: 512, 1024
  4. Drag the various icons into the Appicon Assets of your Xcode project


Monday, April 15, 2019

Final app ideas

Here are a bunch of app ideas at random. Some of them are apps we've created in past years.

Related to classes at SVCTE

  • HVAC dictionary of symbols
  • Welding dictionary of symbols
  • Electrical dictionary of symbols
  • Resistor Color Code app (enhanced beyond what we did in class together)
  • Metric conversion calculator and tutorial
  • Nutrition guides such as My Plate or Food Pyramid with lots of information

Educational apps for children

  • Colors, numbers, letters, shapes with voiceover
  • Word spelling game like Apple Pie with original graphics, words, and graded levels
  • Concentration game (matching squares)
  • 15-Puzzle game (look it up)

More ideas

  • World clock based on the clock app (show 4 different clocks in different time zones)
  • Entomology app (ants, etc.) - reference material
  • Recycling information - reference material
  • Finger painter with enhancements such as different size brushes and many more colors (for those who did the finger painter app)

 A few things to think about

  • Would this app work better as a web site instead of an app?
  • Don't use any photos or graphics that are copyrighted by others (i.e. draw everything yourself or take all your own photos)
  • Make it look professional with stack views and margins and color themes and uniform layouts
  • Is this app truly useful?


Thursday, April 11, 2019

Survey

Please complete this survey regarding SVCTE. This is an assignment and you will get credit for it.

https://www.svcte.us/2019exitsurvey

This link may give an error about security, but the survey is OK to use. You may have to put in your student password for the AM student or the PM student.


Thursday, April 4, 2019

Remaining Projects

We have 6 weeks left to complete all the following projects. This is just a sketch outline. The requirements may change.

AM Class

  1. Lesson 3.9 Workflows (drawing sketches, academic)
  2. Unit 3 Final Project: Personality Quiz
  3. Snake Game *
  4. App Icon Sizes 
    • Exporting app icons from Adobe Illustrator
  5. Clock
  6. Basketball
  7. Resistor Color Code
  8. See all the PM class lessons below ▶
  9. Final Project ▶

PM Class

  1. Popup window (on hold)
  2. Online Prototyping tutorial (InVision)
  3. Final Project ▶

Final Project

  1. Send me an email with your idea in one sentence (academic)
    • I will approve your idea before you continue
  2. Idea writeup (academic)
    • Target audience
    • Summary of screens 
    • Capabilities
    • Competition on the app store
  3. To do list (academic)
    • See the separate list below ▶
  4. Sketches (academic)
  5. Online Prototyping (InVision)
  6. Storyboard checkpoint
  7. Navigation checkpoint
  8. Data checkpoint
  9. Icons
  10. App Store writeup
  11. Class Presentation
  12. App Store submission?
 

To Do List

  • You need a list of everything you need to do, in order if necessary, to finish your app, so you can make sure you don't forget everything
  • Include as much detail as possible and necessary to make sure you don't forget anything
  • Storyboards
  • Scenes
  • A list of all assets you'll need
    • Assets include any images you may need
      • Images may include photographs, which you'd need to take yourself (don't use any images found on Google)
      • Images may also include artwork you'd generate in Adobe Illustrator
      • Don't forget the icons
    • Assets also include any sounds your app might need
      • You need to record all your own sounds; you can edit them in Adobe Audition if needed
      • Don't use any sounds found on Google
  • Make a list of all widgets in your app, including buttons, switches, sliders, etc. and indicate which ones need Action functions and what those functions will do
  • No sketches necessary; that will be in the next step

Done

  1. Lesson 3.7 Tab Bar Controllers
  2. Lesson 3.8 Life Cycle
  3. Gestures tutorial
  4. Lesson 4.5 Table Views (Emoji Dictionary)
  5. Lesson 4.7 Saving Data (Emoji Dictionary part 2)
  6.  



Monday, April 1, 2019

Grades April 2

I will submit your grades on Tuesday, April 2 at 3:45 pm. You must complete the following lessons to get a good grade. (Other lessons will count in your final grade in May, but not in your progress grade in April.)

Remember, the assignments in red have a bigger impact on your grade. 

Morning class:

  • Lesson 2.7, UIKit, Screen Shots in Google Docs reporty
  • Find Your Passion
  • All Unit 1 Lessons
  • Unit 2 Lessons up to 2.9 (Controls)
  • Lesson 3.1 Optionals
  • Tic Tac Toe, 4 Kids

Afternoon Class:

  • DNA Report
  • Morse Code
  • App Journal 4-7
  • Find Your Passion
  • Random Circles, Heart, 4 Kids, Tic Tac Toe, Zoo, HTML Table of Device Sizes
  • All Unit 1 Lessons
  • All Unit 2 Lessons
  • Unit 3 Lessons up to 3.7 (Tab Bar)



Clock Hour Numbers

I will try to reduce this to the minimum you need to get this to work. This code may differ significantly from what you need to write for Xcode 10 / Swift 4.2. Hopefully Xcode will suggest some good fixes.

This first section is going to try to figure out exactly how high your numbers are.

    
    func drawHourNumbers (rect : CGRect) {

        let fontSize = baseWidth * 14
        let attributes : NSDictionary = [
            NSForegroundColorAttributeName : color,
            NSParagraphStyleAttributeName : NSMutableParagraphStyle(),
            NSObliquenessAttributeName : 0,
            NSFontAttributeName : UIFont(
                name : "HoeflerText-Regular", size: 18)!        
        ];

        var maxHeight : CGFloat = 0
        for i in 1...12 {
            let s = "\(i)"
            let h = s.size(attributes: attributes as? [String : Any]).height
            if h > maxHeight {
                maxHeight = h
            }
        }

This next section will draw the numbers taking into account the width and height of the string (i.e. it is going to help you center them using an offset).
        
        let attributes2 : NSDictionary = [
            NSForegroundColorAttributeName : color,
            NSParagraphStyleAttributeName : NSMutableParagraphStyle(),
            NSObliquenessAttributeName : 0,
            NSFontAttributeName : UIFont(
                name : font, 
                size: fontSize * fontSize / maxHeight)!
        ];

        for i in 1...12 {
            let loc = angle(fromHour: i)
            let s = "\(i)"
            let w = s.size(attributes: attributes2 as? [String : Any]).width
            let h = s.size(attributes: attributes2 as? [String : Any]).height
            s.draw(with: CGRect(x: loc.x-w/2, 
                                y: loc.y-(fontSize*0.55),
                                width: w, 
                                height: h),
                   options: .usesLineFragmentOrigin,
                   attributes: attributes2 as? [String : Any], context: nil)
        }
    }
 



Thursday, March 28, 2019

Schedule Reminders

SVCTE classes are in session the week of April 1–5. Your home school may be on break that week, but it is a state of California legal requirement that you be in class here that week. Your family may plan to go to Disneyland that week, but it is a state of California legal requirement that you be in class that week. Our spring break is later in April. See the schedule. I think our break is the week of April 22-26. You were informed of this before signing up for the class and you were given the opportunity to opt out of the class if you cannot meet the legal requirements of the course.

There is no PM class on Wednesday, April 3. PM class is in session every other day next week.

I will issue your grades on Tuesday, April 2 at 3:45 pm. This is your last opportunity to bring up your second progress grade. I will not accept any work after 3:45 on Tuesday, April 2 for any reason. Not in person, not on paper, not online, not in Google Docs, not through the upload form. 3:45 pm Tuesday. That's it.


Wednesday, March 20, 2019

UIKit Lesson

Lesson 2.7 calls for you to create a document in Pages. You could use Google Docs or Microsoft Word if you prefer. Share your work with me at mbrautigam@metroed.net. This assignment will get academic credit instead of technical credit, which will boost your grade if you do it well.

I suggest you do this assignment NOW even if you haven't finished Lesson 2.5 and Lesson 2.6. This academic assignment is worth about 8 percent of your grade right now. If you complete the assignment well (following all the directions), it could raise your grade by about 8 percent.


Tuesday, March 19, 2019

MAPin Career Pathways Day

Wednesday March 20

AM: 7:55–8:15 am
PM: 12:55–1:25 pm

Your assignment is to visit three employers and three colleges. They must punch your card. It is worth 12 points of career readiness on your grade. I will give you extra credit if you visit more than six booths. Make sure to put your name on your card before you turn it in to MAPin for the raffle drawing.

Colleges:

Academy of Art University*
Carrington College
CSU East Bay
Evergreen Valley College
Foothill College
Foothill College; EMT/Paramedic Program
Gavilan College**
Mission College
San Jose City College
West Valley College
West Valley College; Law Enforcement & AJ Program

Employers:

24 Hour Fitness*
Arrow Sign Company
Bittner Family Dental Group
City of San Jose-Dispatcher and Data Specialist
Independent Talent Acquisition
Metropolitan Transport Commission
PremierOne Credit Union
San Jose Marriot
San Jose Police Department*
Santa Clara Valley Water District**
SparkPoint*
Tesla**
U.S. Army
U.S. Marines
U.S. Navy

Other:

Language and Math Learning Center
PowerPathways Program
The Tutoring Center**

*AM only
**PM only

Monday, March 18, 2019

Find your passion?

Stanford Scientists Find That Finding Your Passion is Pretty Terrible Advice


This article from Inc. magazine says that there may be better alternatives than finding your passion when it comes to career advice. 

Read this article and reflect on it. What is your passion? Why might following that passion not be good career advice? What might be a better strategy for you?

Write an article about one page double spaced (about two paragraphs) reflecting on this article. Give specific examples of how using your time to find your passion might not be productive. Or, if you disagree, give specific counterexamples. 

Think about your own career objective. Would you want to work in a large company like Google, Facebook, Apple, EA? Would finding your passion help you be successful at a company like that? Would you want to work at a small company like a startup company? Would finding your passion help you be successful there? Would you want to work at your family business? Would finding your passion help you there? Do you want to be an entrepreneur and work by yourself or create your own company? Would finding your passion help you there?

This assignment is due on Friday, March 22 at the beginning of class. Please do this assignment at home on your own time. Do not use class time to work on this unless you are all caught up with the other class assignments.





Monday, March 11, 2019

Monday March 11

Mr. Brautigam will not be in class today. You will have a substitute teacher. This teacher worked in industry for many years. He may tell you about his career and he may give you some tips for your future.

Today you should be working on lessons 2.7 and 2.8. You may be a little behind. That is ok. But try to catch up as much as you can.

If your substitute teacher tells you about his experience in the technology industry, your assignment is to write me a coherent paper in Google Docs that tells me some of the things he talked about, since I cannot be there to hear him in person. The usual rules for writing assignments apply. Look at previous writing assignments from the Spring semester for examples. This assignment is due on Thursday. Try to do the assignment at home so you don't fall behind on the Xcode lessons.


Friday, March 8, 2019

Course Materials for Xcode 10

The lessons materials posted on the curriculum page may or may not work with Xcode 10. If your computer has upgraded to Xcode 10, you may want to use these lesson materials instead. When you download a unit, you'll download all the lessons in that unit.




Thursday, March 7, 2019

Revised Schedule

AM Class


Weeks 7-8
Week 7Unit 1, Lessons 1–8 and final project
Week 8Unit 2, Lessons 1–6
Week 9
Monday March 11Lesson 2.7: UIKit
Lesson 2.8: Data
Tuesday March 12Lesson 2.9: Controls
Lesson 2.10: Auto Layout
Weds. March 13Unit 2 Project: Apple Pie
Thurs. March 14Lesson 3.1: Optionals
Friday March 15Lesson 3.2: Type Casting
Week 10
Monday March 18Lesson 3.3: Guard
Tuesday March 19Lesson 3.4: Scope
Weds. March 20Lesson 3.5: Enumerations
Thurs. March 21Lesson 3.6: Navigation Controllers
Friday March 22Lesson 3.7: Tab Bar Controllers
Week 11
Monday March 25Lesson 3.8: Life Cycle
Tuesday March 26Lesson 3.9: Workflows
Weds. March 27Unit 3 Project: Personality Quiz
Thurs. March 28Core Data

PM Class

Week 8
Thurs. March 7Unit 2 Project: Apple Pie
Friday March 8Lesson 3.1: Optionals
Lesson 3.2: Type Casting
Week 9
Monday March 11Lesson 3.2: Type Casting
Lesson 3.3: Guard
Tuesday March 12Lesson 3.4: Scope
Lesson 3.5: Enumerations
Weds. March 13Lesson 3.5: Enumerations
Lesson 3.6: Navigation Controllers
Thurs. March 14Lesson 3.7: Tab Bar
Lesson 3.8: Life Cycle
Friday March 15Lesson 3.8: Life Cycle
Lesson 3.9: Workflows
Week 10
Monday March 18Unit 3 Project: Personality Quiz
Tuesday March 19Core Data



Sunday, February 24, 2019

Difficult Pages and New Concepts

Unit 1, Lesson 4:
  • Page 4 has some intricate logic but you should be able to work it out.
  • Page 7 uses switch statements with ranges. This is a new concept. Explanation is in the book.
  • Page 8 introduces the ternary operator. This is new. Explanation is in the book.
  • Page 9 also uses the ternary operator.

Unit 1, Lesson 6 will introduce you to debugging, breakpoints, and the debug console.

Unit 1, Lesson 8 has two different simple apps you will make.

Unit 1, Guided Light App will have you write and change code and change the UI to the best possible.


Unit 2, Lesson 1, Page 5 - You need to pay careful attention to the instructions, especially regarding the use of case sensitivity.

Unit 2, Lesson 2, Page 4 - The pacing function may be difficult for you to formulate. You want to compare the fraction of the distance completed (current distance / total distance) with the fraction of the time used (current time / goal time). If the distance is farther along than the time, then you will beat the goal time.

Unit 2, Lesson 2, Page 6 - This has another pacing function. To calculate the pace, remember that

current distance        total distance
-------------- = ------------
current time             total time

Or, you could look at it this way:

current distance / total distance = current time / total time
current distance        current time
-------------- = ------------
total distance             total time

You want to calculate the total time based on the other three. (This would tell you, for example, how many minutes it will take you to run a mile.) Figure out the equation to determine the total time.

Unit 2, Lesson 3, Page 7 - I could not get the didSet functions to work without causing an infinite loop.

Unit 2, Lesson 3, Page 8 - Be aware, the willSet function behaves differently than the didSet function.

Unit 2, Lesson 4 introduces classes, which is an entirely new concept. Classes are similar to structures but they have some added capabilities, such as inheritance. Inheritance is an important concept for you to know if you plan to continue on in the future to Java or Android programming or AP Computer Science. We should probably do this lesson together instead of independently.

Unit 2, Lesson 6 introduces new uses of the for...in loop, such as indexes and key/value pairs. It also introduces while loops, which are an alternative to for...in loops.

Unit 2, Lesson 8 asks you to create two small apps and make them look nice, but you do not need to use constraints or auto layout, which will be in a future lesson.

Unit 2, Lesson 9 asks you to connect a tap gesture recognizer. The gesture recognizer exists only in the document outline, so you'll need to make sure it is open.