Skip to content

Ch8 - PetScrapbook code crashing and doesn't work correctly #3

@pentool

Description

@pentool

Hello,

Just finished reading chapter 8 in the PDF book. Instead of typing all the code in for the PetScrapbook project, I decided to download it as a ZIP and run it. There seem to be a few issues with the code as provided.

ISSUE 1:
When you add a new scrapbook entry (or modify the existing one), when you tap "Done" it will navigate back in the wrong direction. It will navigate towards the right as opposed to towards the left. Also, the page you navigate back to, is completely blank, and the app will crash when you add a new list item entry.

STEPS:
(I am using the iOS emulator)

  1. Start the app.
  2. On the Home page, tap "Continue".
  3. On the Pet Scrapbook list page, either tap the existing empty "undefined Scrapbook Page" entry, or tap "Add" to create a new one.
  4. In the settings page, define your settings.
  5. Tap "Done".
  6. The page will slide out towards the left (so it will give you the illusion as if you are moving towards the next (right) page.
  7. The page you arrive to will be completely blank, but there will be an "Add" button in the ActionBar on the right.
  8. Tap the "Add" button in the top right.
  9. The app will crash.

ISSUE 2:
On the settings page, the "Done" button is off the screen and cannot be seen on a 4.5" emulator (iOS 5S). I had to wrap the "ScrapBook Update Page" into a in order to see the "Done" button. No biggie, but still.

MY SETUP:
Using the iPhone 5S emulator for iOS 9.3.5 (since I have older devices they can only be updated up to iOS 9.3.5, so I'm using "matching" emulators for the iOS version).

OS X 10.11.6 El Capitan
Xcode 8.2.1 (this is the last Xcode version that runs on El Capitan 10.11.6)
Android Studio 3.0.1
JRE 1.8.0-152
tns 3.3.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions