Sunday, May 19, 2019

Extra Credit - Film Festival

Film Festival
Tuesday May 21
6:00-8:00 pm

See films by our own Film & Video students, as well as animations by the Animation class. 

I will give you extra credit if I see you there. Don't ask me how much extra credit - if you ask, you're not really interested. I'll make it worth your while. The extra credit will go under the "career readiness" category but it doesn't really matter because it will raise your grade somehow.

Click on the flier to enlarge it.


Cyber Camp and Design Thinking Bootcamp

The flier has information how to contact and register. Click on the image to enlarge it.

Here is another one that will take place in Milpitas


Final Projects

The good news: most of you turned in working projects.

The bad news: most of you did not test and fix your projects in all six required orientations:
  1. Small iPhone (5s) - Portrait
  2. Small iPhone (5s) - Landscape
  3. Large iPhone (8+ or XR) - Portrait
  4. Large iPhone (8+ or XR) - Landscape
  5. Any iPad - Portrait
  6. Any iPad - Landscape

Friday, May 17, 2019

Design Contest Winners

Thank you to 103 visitors from Mechatronics, Cybersecurity, Veterinary Science, Medical Assisting, and Construction Technology who voted on our best posters, logos, and apps.

Click on the image to see a more detailed view.

Posters

First Place - Nick Nguyen, PM Class, Andrew Hill HS

Honorable Mention - Giselle Valencia-Garcia,
PM class, Lincoln HS

Honorable Mention - Tran Tran,
AM Class, Mt. Pleasant HS

Honorable Mention - Zeus Lopez,
AM Class, Wilson HS

Logos

First Place - David Warshawsky, AM class, Santa Clara HS

Second Place - Nick Nguyen,
PM class, Andrew Hill HS

Third Place - Catherine Ngo,
AM class, Evergreen HS

Apps


First Place - HVAC, Mikey Alvarado and Ken Rodriguez

Second Place - Anatomy, Giselle Valencia-Garcia and Nhat Tran

Timer code for Concentration game

This code is in the action method for when a button (card) gets touched. Your code may need to be a little different. 

        if buttonsTouched.count >= 2 {
            // same picture
            if pictures[buttonsTouched[0].tag] == pictures[buttonsTouched[1].tag] {
                let _ = Timer.scheduledTimer(
                    timeInterval: 2.0,
                    target: self,
                    selector: #selector(keepCards),
                    userInfo: nil,
                    repeats: false)
            }
            // not same picture
            else {
                let _ = Timer.scheduledTimer(
                    timeInterval: 2.0,
                    target: self,
                    selector: #selector(turnOver),
                    userInfo: nil,
                    repeats: false)
            }
        }


These are the selector functions that will get called. Your code may be a lot different.

    @objc func keepCards() {
        buttonsTouched[0].backgroundColor = flippedColor
        buttonsTouched[1].backgroundColor = flippedColor
//        buttonsTouched[0].setTitleColor(.white, for: .normal)
//        buttonsTouched[1].setTitleColor(.white, for: .normal)
        buttonsTouched = []
    }
   
    @objc func turnOver() {
        if seen.contains(pictures[buttonsTouched[0].tag]) {
            missed += 1
            missedLabel.text = "\(missed) missed"
        }
        for b in buttonsTouched {
            b.setTitle("\(b.tag+1)", for: .normal)
            seen.append(pictures[b.tag])
        }
        buttonsTouched = []
        print (seen)
    }

Wednesday, May 15, 2019

Table Views Part 2

Fruits and Vegetables Project

http://mobileapps1819.svctestudents.org/materials/TableViewFruit.zip


We did this project in the PM class but we did not have time in the AM class. This project shows how to pass information from a Table View cell selection to another view controller using a segue. This code passes the cell label text to the destination view controller. The code looks like this:


    override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
        // Get the new view controller using segue.destination.

        let dest = segue.destination as? ViewController
        let cell = sender as? UITableViewCell

        // Pass the selected object to the new view controller.        
        dest?.newFruitText = (cell?.textLabel?.text)!
        dest?.newFruitImage = (cell?.textLabel?.text?.lowercased())!
    }

You may want to get the section and/or row number of the cell that got selected. You would want to do this if, for example, they clicked on the row 30 and you want to display president #30 or ant species #30 or HVAC symbol #30. This assumes you have a data file with presidents or ants or HVAC symbols (which you should have turned in for the data checkpoint).

Anyway, you can get the selected row using this somewhat roundabout way. Insert this into the above code where it says "pass the selected object" in place of or in addition to the code there.

        dest.presidentNumber = self.tableView.indexPathForSelectedRow.row;

You can also get the section number from the indexPathForSelectedRow if your table view has sections for different kinds of data.


Scroll View Tutorial

(only for those who need it)

http://mobileapps1819.svctestudents.org/materials/ScrollViewBanana.zip



Monday, May 13, 2019

App Icon

Your app will need to have an icon that will appear on the home screen. You will create your icon in Adobe Illustrator and export it to PNG in all the various required sizes. For the icon assignment, you will turn in your Adobe Illustrator file and all the various PNG files.

You can read some guidelines for icons in Lesson 6.1 of the textbook.

You can find some information about the required icon sizes here and here.

Final Project

For the final project, you will also need to insert the icons into your project. In the project navigator find Assets.xcassets then find Appicon. There are about 18-20 slots for icons, but some of them are the same size, so you need about 13-14 different sizes of icon. You must have icons in all the correct sizes and they must all be in the correct slot.


If the base size of the icon is 20pt, and the multiplier is 2x, then you need to put a 40px icon in that slot.

If the base size of the icon is 20pt, and the multiplier is 3x, then you need to put a 60px icon in that slot.

If the base size of the icon is 29pt, and the multiplier is 2x, then you need to put a 58px icon in that slot.

And so on ...


Final App Requirements

Your final app must fulfill all these requirements.
  1. The app must build and run, with no red errors and no crashes.
  2. The app must not have any dead-end navigation. No matter what screen I am on, I should be able to navigate back or to the home screen.
  3. All the navigation in the app must work. 
  4. The app must work on both iPad and iPhone unless you justify your decision. Not understanding stack views or constraints is not a justification.
  5. The app must work in both portrait and landscape mode unless you justify your decision. Not understanding stack views or constraints is not a justification.
  6. (You should test your app in six different configurations as described elsewhere on this blog.)
  7. If your app has images, all the images must be there.
  8. If your app has a database, it must be complete.
    1. Example: If your app is about presidents, it should have screens for all 45 presidents.
    2. Example: If your app is about HVAC, it should have all the HVAC symbols.
  9. The app must have an icon that satisfies the guidelines in Lesson 6.1.
  10. The information in the app must be correct.

Your final app does not need:
  1. A description for the app store. We will work on this during the last week of class.


Sunday, May 12, 2019

Week 17 Overview

You must turn in both app checkpoints on Monday and Wednesday or you will get no credit. There is no late credit on the checkpoints. I will hold the class both days until I have a project from each group.

You must turn in the final app on Friday at the end of the period or you will get no credit. I will hold the class until I have a project from each group. We will miss the bus if necessary. Be prepared.

ActivityAM ClassPM Class
Final Working App Checkpoint 1Monday May 13Monday May 13
App IconTuesday May 14Tuesday May 14
Final Working App Checkpoint 2Wed. May 15Wed. May 15
Open House-Thurs. May 16
Final working appFriday May 17Friday May 17

Week 18 Preview


Overtime Final working appMonday May 20Monday May 20
App Store writeupWed. May 22Wed. May 22
Last day of classFriday May 24Friday May 24

Tuesday, May 7, 2019

Extra Credit

Read this article and write a 1-2 page essay in response.

This young musician with cerebral palsy writes songs using his eyes

https://www.classicfm.com/music-news/musician-cerebral-palsy-writes-music-with-eyes/



Read this article and the include links and write a 1-2 page essay in response.

8 Cool Mobile Apps Created by High School Students

https://www.emergingedtech.com/2015/01/8-mobile-apps-created-by-high-school-students/



I am only interested in reading quality writing! Don't turn in something half baked and expect anything in return.
  • Your writing should indicate that you read the article from the first to the last word.
  • For the second article above, make sure to read about all the apps through their attached links.
  • Your writing should indicate that you are curious and interested in the topic, not that you threw something together to get a few extra points.
  • I will probably not have time to mark up your essays, so turn in your best quality work the first time. This means grammar, spelling, and punctuation. Did you know that word processing programs will point out your spelling and grammar errors? Who knew?
  • Write both essays for even more extra credit.
  • Turn them in printed out on paper, double spaced. Follow the instructions! 
  • Write these essays on your own time at home. You must devote your class time to finishing the final app and other Xcode projects.

Think about these issues ...
  • Could you write an app that serves this same target audience? What would it take?
  • How does that guy's music program work, anyway?
  • How does someone with cerebral palsy go to college, anyway?
  • What would it take to write that app about crime, parking, education? Be complete and specific. What extra little piece does it take to communicate with the police or the school system?

Storyboards

You must test your storyboard in six different configurations:
  • Small iPhone (e.g. 5, SE)
    • Landscape
    • Portrait
  • Large iPhone (e.g. 8+, XR)
    • Landscape
    • Portrait
  • iPad (any)
    • Landscape
    • Portrait

Monday, May 6, 2019

Final Project Checkpoints


ActivityAM ClassPM Class
To Do ListMonday May 6Friday May 3
Sketches (academic)Monday May 6Friday May 3
Storyboard checkpointTuesday May 7Monday May 6
Navigation checkpointWednesday May 8Tuesday May 7
Data checkpointThursday May 9Wednesday May 8
IconsFriday May 10Thursday May 9
App Store writeup (academic)Monday May 13Friday May 10
Class Presentation (academic)Tuesday May 14Monday May 13
Final working appFriday May 17Friday May 17
App Store submission?????

Other Activities

China students visitThursday May 9
China students visitFriday May 10
Awards Ceremony OrientationFriday May 10
China students visitMonday May 13
China students visitTuesday May 14

To Do List due Monday, May 6

  • 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 



Wednesday, May 1, 2019

Strategy

AM Class

  • Each academic assignment is worth about 3% of your grade
  • Each technical assignment is worth about 0.75% of your grade
  • (except double credit assignments such as Personality Quiz)

PM Class

  • Each academic assignment is worth about 2% of your grade
  • Each technical assignment is worth about 0.5% of your grade
  • (except double credit assignments such as Personality Quiz)

Raising your grade

  • Completing the final project will not raise your grade if it is low. This will just keep your grade from going lower. The final project has a greater probability of lowering your grade if you don't finish it or if it is not ready for the app store.
  • The only way to raise your grade is to complete the assignments you never turned in.
  • You may also resubmit corrected writing assignments.

Apps and Teams

PM class teams:


HVACMikey and Kenneth
Logic GatesNick
AnatomyNhat and Giselle
RecyclingHan and Joshua
AntsJustin and Michael
Letter TracingEvan and Christian
Food PyramidRoberto and Phung



AM class ideas:

Mental health, fitness, nutrition, memory, ASL, HVAC, Welding, children apps, photo reminder, senior citizens, presidents, world clock, entomology, resistor color code, football plays, world map

Mental HealthAnthony, Zeus
Visual MemoryNghi, Tran
ASLCatherine, Josiah
Resistor Color CodeCarlos, David
HVACHuy, Neel
WeldingJosh, Ayush
NutritionAliyeh, Shirin
NutritionDat, Estuardo
NutritionJaiya, Sophia
ChildrenKarla, Xandria
ChildrenPaul, Brian
Text AdventureRandy, Timmy
PresidentsRayyan, Anjana
 
??Aryan
??Abraham