Inherits from UIView
Declared in SPView.h

Overview

An SPView is the UIView object that Sparrow renders its content into.

Add it to the UIKit display list like any other view. Beware that Sparrow will only receive multitouch events if the multitouchEnabled property of the view is enabled.

To start Sparrow, connect this class to your stage subclass and call the start method. When the application ends or moves into the background, you should call the stop method.

Tasks

Properties

  •   isStarted

    Indicates if start was called.

    property
  •   frameRate

    Assigns the desired framerate. Only dividers of 60 are allowed (60, 30, 20, 15, 12, 10, etc.)

    property
  •   stage

    The stage object that will be processed.

    property

Methods

  • – start

    Starts rendering and event handling.

  • – stop

    Stops rendering and event handling. Call this when the application moves into the background.

Properties

frameRate

Assigns the desired framerate. Only dividers of 60 are allowed (60, 30, 20, 15, 12, 10, etc.)

@property (nonatomic, assign) float frameRate

Discussion

Assigns the desired framerate. Only dividers of 60 are allowed (60, 30, 20, 15, 12, 10, etc.)

Declared In

SPView.h

isStarted

Indicates if start was called.

@property (nonatomic, readonly) BOOL isStarted

Discussion

Indicates if start was called.

Declared In

SPView.h

stage

The stage object that will be processed.

@property (nonatomic, retain) SPStage *stage

Discussion

The stage object that will be processed.

Declared In

SPView.h

Instance Methods

start

Starts rendering and event handling.

- (void)start

Discussion

Starts rendering and event handling.

Declared In

SPView.h

stop

Stops rendering and event handling. Call this when the application moves into the background.

- (void)stop

Discussion

Stops rendering and event handling. Call this when the application moves into the background.

Declared In

SPView.h