Scroll View School Hands-On Challenges

Similar documents
EZ-220 Page Turner Owner s Manual

StickIt! VGA Manual. How to install and use your new StickIt! VGA module

Instruction Guide February 2017

IoT Toolbox Mobile Application User Manual

AABB Trademark Usage Guidelines

TelePresence Cisco TelePresence Synch with Edge95MXP - Troubleshooting

research platform comma.ai, github.com/commaai/neo

PCI MPEG Frame Grabber. Model 616. August 6, 2002

LED Series Sealed Backlights

SOC Single Channel H264 + Audio Encoder module

Booya16 SDR Datasheet

This library was designed to make song writing as easy as possible! The loops are arranged into the following sections:

PCI Express JPEG Frame Grabber Hardware Manual Model 817 Rev.E April 09

EZ-LIGHT K30L Series With Independent Push Button Contact

HD1-DX HDMI Extender

Installation Guide. Table of Contents: HotLok Full Rack Blanking Panel Kit. Mounting Extrusion. HotLok Blanking Panel. HotLok Blanking Sheet

EZ-LIGHT S18L Color General-Purpose Indicators

Linear Array with Intensity Adjustment

8024-DSS-02 Issue 2. DSS-8024 Dual Serial Switch USER MANUAL

Installation Instructions

1 Unpack the projector. Quick Setup. EPSON PowerLite S1+ Your projector comes with the following items:

Edition 1, August 2011 Copyright 2011 Smart-e (UK) Ltd.

AT&T CIB 3067 CALL ACCOUNTING SYSTEM (CAS) MODEL 100 (61370) ( )

QUICK START GUIDE SL-6. Powering and Wireless System for the 688 Field Production Mixer

ISIS intouch NET Wi Fi Touch Screen Controller Owner s Manual and Instruction Guide

Children cannot always recognize potential hazards properly. This 5.1 system is not designed for operation in a heavy industry environment.

PLUGIN MANUAL. museq

DEMO MANUAL DC2668A LTC5552 3GHz to 20GHz Microwave Mixer with Wideband DC to 6GHz IF BOARD PHOTO

Instruction Manual. Wireless Transmitters (Digital) RVS-550W. Reverse With Confidence 1

QUADRO AND NVS DISPLAY RESOLUTION SUPPORT

VIODC SDI Demonstration

ArcticLink III BX5 Solution Platform Data Sheet

HD1-LX HDMI & IR Extender

User Manual C- Ray

LogiCORE IP Spartan-6 FPGA Triple-Rate SDI v1.0

3M Sun Control Window Films Prestige Series. Prestige. Clearly Superior. Window Films. for Clearly Superior Homes

The specially designed stand (Included) made possible to use it indoor as well.

EZ-LIGHT K90FDL Daylight Visible

Model # of Colors Colors Input Connection 1 K90TLGRPQ 2 Green, Red K90TLGYRPQ 3 Green, Red, Yellow K90TLBGYRPQ 4 Blue, Green, Yellow, Red

DVI to HD-SDI Scaler Pro

MaxView Cinema Kit Quick Install Guide

Atlona Mini VGA Extender with Audio AT-VGA180AS AT-VGA180AR. User Manual

EZ-STATUS WLS28-2 Multicolor LED Strip Light

Operating Manual for Clock / Auxiliary Displays for VHX systems

QUADRO AND NVS DISPLAY RESOLUTION SUPPORT

DisplayPort TM Super Booster Cable

This guide provides information on the installation of the 1710, 2315 and 2800 RF Kits from Autostart. Compatibility... System Functionality...

DA Channel Audio Sample Rate Converter

DVDO VS4 HDMI Switch. User s Guide How to install, set up, and use your new DVDO product

Using the KC705 Kintex-7 evaluation kit

5V +10V. Figure 1. DC2622A Connection Diagram

USER MANUAL Table of Contents

ROBOT-M24LR16E-A. Evaluation board for the M24LR16E-R dual interface EEPROM. Features. Description

PCI Frame Grabber. Model 611 (Rev.D)

EXT-3GSDI-FOSM User Manual

Activity #5: Reaction Timer Using the PIN and CON commands Real World Testing Chapter 3 Review Links

MWT-FM. Operation Manual. FM Single Channel Transmitter. man_mwtfm.

Document Part Number: Copyright 2010, Corelis Inc.

RoBoard Panel RP-089 Manual V1.0 The Heart of Robotics. Jul 2010 DMP Electronics Inc

MIRAGE. Skyline Mirage Set-Up Instructions Skyline Exhibits

3-Port Multi Monitor Mini DisplayPort to DisplayPort MST Hub

Model: HDCMP31. Installation Guide

45LM Series Modules. Features. Specifications. Plug-in Logic and Display Modules for Q45 Series Photoelectric Sensors

SLiC Fiber Aerial Closure System

Congratulations on your mcable purchase! The mcable delivers the best possible picture to your HD or 4K TV by up-converting 480p and 720p content to

AT-HDPIX. Users Manual

3 Innovation. Application Guidelines

LavryBlack Series Model DA10 Digital to Analog Converter

1:4 3GSDI Splitter. EXT-3GSDI-144 User Manual.

Setup Guide. Introduction

Mini HD-SDI Optical Transceiver Model No : VCF-MF01TXRX

MP-878D Series. Mini-PCI Video Capture Card. User s Manual

CH1 CH2 CH3 CH4. Master /Fade CH5. 600s CH6. 60s SC1 SC2 SC4 SC3 SC5. SC6 Off/Pro. AL Fade 6 Pro. User guide

3GSDI to HDMI 1.3 Converter

O w n e r s M a n u a l

user guide SLX-111 also available: SLX-100, SLX-214 transmitter & receiver pair tel: +44 (0) ,

Setup Guide. Introduction

User Manual. PC / HD Scaler. with advanced video processing. VGA to Component Video Component Video to VGA VGA to VGA Component to Component

imso-104 Manual Revised August 5, 2011

Do not install and/or operate this safety product unless you have read and understand the safety information contained in this manual.

USER MANUAL Table of Contents

PACIFICA. Owner s Manual

CrystalView DVI Micro-DL Extender

2 Canton Street, Suite A-8 Stoughton, MA Summer Stock Registration Form

ezcinema Plus Series

Extender E XT-3GSDI-FO -141 U S ER M ANUAL.

7thSense Design Delta Media Server

Cisco TelePresence Synch

APPLICATION NOTE. Figure 1. Typical Wire-OR Configuration. 1 Publication Order Number: AN1650/D

Enable-IT 821P PoE Extender Quickstart Guide Professional Grade Networking

This guide gives details of the effects available on the FX selection DMX channels 15 and 17 in the MAC Aura.

HD-1x2-4K. Ultra Slim 6G HDCP 2.2 1x2 HDMI Splitter. Factor Electronics

User Manual TLS HDMI Switch 4/1 MHL

Trusted 40 Channel Analogue Input FTA

MSP430-HG2231 development board Users Manual

3M Automotive and Aerospace Solutions Division. Spec d to protect.

ARIS EXPLORER 1200 GETTING STARTED

Enable-IT 824WP Outdoor Waterproof PoE Extender Kit Quickstart Guide Professional Grade Networking

IMS B007 A transputer based graphics board

Quadro Plex D2. Mosaic Mode for windows XP Reference Guide

Transcription:

Scroll View School Hands-On Challenges Copyright 2014 Razeware LLC. All rights reserved. No part of this book or corresponding materials (such as text, images, or source code) may be reproduced or distributed by any means without prior written per- mission of the copyright owner. This book and all corresponding materials (such as source code) are provided on an "as is" basis, without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose, and noninfringement. In no event shall the authors or copyright holders be liable for any claim, damages or other liability, whether in action of contract, tort or otherwise, arising from, out of or in connec- tion with the software or the use or other dealings in the software. All trademarks and registered trademarks appearing in this book are the property of their respective owners.

Challenge C: Scrolling Background The about screen from the lecture is a great start, but it would look even better if there was a background image behind the about page, with the blurred effect popularized in ios 7. To add some extra polish, you ll even add some parallax scrolling! Part 1: Dual Scroll Views Open the starter project for this challenge (which is the same spot where the demo from the lecture left off). Open Main.storyboard, and drag another scroll view inside the About Scene, as a direct child of the main view (and a sibling of the other scroll view). Select the new scroll view, and make its size equal to the main view. Then go to Editor\Pin\Leading Space to Superview. Repeat this for the other edges. Add an image view as a child of this new scroll view, and set the image to BackgroundBlurred. Pin the image view to all 4 edges of the scroll view with 0 distance. Build and run the app, and you should see the following:

Notice that there is a problem the text Flappy Felipe isn t completely visible at start, even though Adjust Scroll View Insets is selected in the Storyboard editor. This is because Adjust Scroll View Insets only works for the first child scroll view, and now that you have two child scroll views the view controller is no longer automatically adjusting the second (foreground) scroll view. To fix this, simply add this these lines at the end of viewdidload: CGFloat topinset = CGRectGetHeight(self.navigationController.navigationBar.frame) + CGRectGetHeight( [UIApplication sharedapplication].statusbarframe); self.fgscrollview.contentinset = UIEdgeInsetsMake(topInset, 0, 0, 0); self.fgscrollview.scrollindicatorinsets = UIEdgeInsetsMake(topInset, 0, 0, 0); Build and run, and it s looking slightly better:

However, notice that you can t see the background behind the status bar (this was actually the case before too, but it wasn t as easy to see since the text was showing up behind). To fix this, simply open Main.storyboard and uncheck Adjust Scroll View Insets. Build and run one last time: Looking good! Uber Haxx0r Challenge: Parallax Scrolling It turns out that BackgroundBlurred image provided in this starter project is taller than the screen. Your challenge is to add a bit of extra polish to the about

page and make the background scroll view scroll from top to bottom, as you scroll the foreground scroll view from top to bottom. Since the content size of the background scroll view is less than the content size of the foreground scroll view, you wills scroll the background slower than the foreground image scrolls, for a neat parallax effect. Here are some hints on accomplishing this: You ll need to implement scrollviewdidscroll:, and refresh the background scroll view s content offset each time. First figure out the percentage that the foreground view has scrolled so far. Then update the background view to be a similar percent. You may wish to reduce the background image view s scroll area a bit so that when you bounce the foreground outside of the visible area, you don t see blank space.