Inherits from UITableViewController
Declared in SCLocationSubmitController.h

Overview

Presents the standard C2Call SDK Location Submit Controller.

Captures the current location or nearby places for submission.

Properties

headerView

UIView containing Header Information.

@property (nonatomic, strong) IBOutlet UIView *headerView

Declared In

SCLocationSubmitController.h

mapView

The actual MapView.

@property (nonatomic, weak) IBOutlet MKMapView *mapView

Declared In

SCLocationSubmitController.h

myAddress

UILabel to display the current Address.

@property (nonatomic, weak) IBOutlet UILabel *myAddress

Declared In

SCLocationSubmitController.h

submitButton

Submits Action Button.

@property (nonatomic, weak) IBOutlet UIButton *submitButton

Declared In

SCLocationSubmitController.h

targetUserid

Targets UserId for submission.

@property (nonatomic, strong) NSString *targetUserid

Discussion

If no submit action has been set, clicking on the submit button will submit the location to the target user.

Declared In

SCLocationSubmitController.h

Instance Methods

closeView:

Closes the view or triggers the Cancel Action.

- (IBAction)closeView:(id)sender

Parameters

sender
  • The initiator of the action

Declared In

SCLocationSubmitController.h

sendLocation:

Submits the location or triggers the Submit Action.

- (IBAction)sendLocation:(id)sender

Parameters

sender
  • The initiator of the action

Declared In

SCLocationSubmitController.h

setCancelAction:

Sets the Cancel Action. Example:

- (void)setCancelAction:(id)cancelAction

Parameters

cancelAction
  • The Action Block

Discussion

[controller setCancelAction:^(NSString *key) {
    [self.navigationController popViewControllerAnimated:YES];
}];

Declared In

SCLocationSubmitController.h

setSubmitAction:

Sets the Submit Action. Example:

- (void)setSubmitAction:(id)submitAction

Parameters

submitAction
  • The Action Block

Discussion

[controller setSubmitAction:^(NSString *key) {
    [[C2CallPhone currentPhone] submitRichMessage:key message:nil toTarget:targetUser];
    [self.navigationController popViewControllerAnimated:YES];
}];

Declared In

SCLocationSubmitController.h