CartoType iOS API 8.8-13-g03c6f7017
for development in Swift and Objective C for iOS and Mac OS
Instance Methods | List of all members
CartoTypeViewController Class Reference

#import <CartoTypeViewController.h>

Inheritance diagram for CartoTypeViewController:

Instance Methods

(id) - init:bounds:
 
(id) - init
 
(id) - initWithCoder:
 
(void) - setFramework:bounds:
 
(void) - onTap:
 
(void) - onLongPress:
 

Detailed Description

A view controller class which draws a map using hardware graphics acceleration and supports the standard gestures to pan, zoom and rotate the map.

Method Documentation

◆ init

- (id) init

Creates a view controller with a valid MGLKView which doesn't draw anything.

◆ init:bounds:

- (id) init: (CartoTypeFramework *)  aFramework
bounds: (CGRect)  aBounds 

Creates a view controller which uses a CartoTypeView object to draw the map. Takes ownership of the supplied framework object.

◆ initWithCoder:

- (id) initWithCoder: (NSCoder *)  aDecoder

Creates a view controller with a valid MGLKView which doesn't draw anything.

◆ onLongPress:

- (void) onLongPress: (CartoTypePoint aPointInDegrees

Handles a long press gesture at a specified point in degrees latitude and longitude. The base implementation does nothing, but you can implement this method in your derived class.

◆ onTap:

- (void) onTap: (CartoTypePoint aPointInDegrees

Handles a tap gesture at a specified point in degrees latitude and longitude. The base implementation does nothing, but you can implement this method in your derived class.

◆ setFramework:bounds:

- (void) setFramework: (CartoTypeFramework *)  aFramework
bounds: (CGRect)  aBounds 

Sets the framework and bounds of the view controller. The bounds are in logical pixels.


The documentation for this class was generated from the following file: