Inherits from UIViewController
Conforms to UIActionSheetDelegate
UIPickerViewDataSource
UIPickerViewDelegate
Declared in AddChoiceTopicViewController.h
AddChoiceTopicViewController.m

Properties

currentChoicePath

@property (nonatomic, strong) NSString *currentChoicePath

groupButton

@property (weak, nonatomic) IBOutlet UIButton *groupButton

groupPretext

@property (weak, nonatomic) IBOutlet UILabel *groupPretext

image

@property (weak, nonatomic) IBOutlet UIImageView *image

longDescription

@property (weak, nonatomic) IBOutlet UITextView *longDescription

name

@property (weak, nonatomic) IBOutlet UITextField *name

private

@property (weak, nonatomic) IBOutlet UISwitch *private

shortDescription

@property (weak, nonatomic) IBOutlet UITextField *shortDescription

user

@property (nonatomic, strong) UserModel *user

Instance Methods

actionSheet:clickedButtonAtIndex:

Standard delegate to handle events from Action Sheet

- (void)actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex

Parameters

actionSheet

The Action Sheet

buttonIndex

The button that was clicked

Declared In

AddChoiceTopicViewController.m

alertView:clickedButtonAtIndex:

Standard iOS Alert Box button handlers

- (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex

Parameters

alertView

The Alert View

buttonIndex

Index to the button that was clicked

Declared In

AddChoiceTopicViewController.m

didReceiveMemoryWarning

Standard iOS delegate for handling memory warnings

- (void)didReceiveMemoryWarning

Declared In

AddChoiceTopicViewController.m

numberOfComponentsInPickerView:

Standard delegate for PickerView for number of components in the picker

- (NSInteger)numberOfComponentsInPickerView:(UIPickerView *)thepickerView

Parameters

thepickerView

The PickerView

Return Value

Return count of Components

Declared In

AddChoiceTopicViewController.m

onClickHelp:

Handler for the Help button

- (IBAction)onClickHelp:(id)sender

Parameters

sender

Sender of the event

Declared In

AddChoiceTopicViewController.m

onClickSave:

Handler for the Save button

- (IBAction)onClickSave:(id)sender

Parameters

sender

Sender of the event

Declared In

AddChoiceTopicViewController.m

onPasteImageClick:

Handler for the Paste Image button

- (IBAction)onPasteImageClick:(id)sender

Parameters

sender

Sender of the event

Declared In

AddChoiceTopicViewController.m

onPrivateSwitched:

Handler for the Private Switch

- (IBAction)onPrivateSwitched:(UISwitch *)sender

Parameters

sender

Sender of the event

Declared In

AddChoiceTopicViewController.m

onSelectGroupButtonClick:

Handler for the Select Group button

- (IBAction)onSelectGroupButtonClick:(id)sender

Parameters

sender

Sender of the event

Declared In

AddChoiceTopicViewController.m

pickerView:numberOfRowsInComponent:

Standard delegate for PickerView for number of rows in the picker

- (NSInteger)pickerView:(UIPickerView *)thepickerView numberOfRowsInComponent:(NSInteger)component

Parameters

thepickerView

The PickerView

component

The PickerView Component

Return Value

Return count of rows

Declared In

AddChoiceTopicViewController.m

pickerView:titleForRow:forComponent:

Standard delegate for PickerView to display rows in the picker

- (NSString *)pickerView:(UIPickerView *)pickerView titleForRow:(NSInteger)row forComponent:(NSInteger)component

Parameters

pickerView

The PickerView

row

The row in the PickerView

component

THe PickerView Component

Return Value

Return row display content

Declared In

AddChoiceTopicViewController.m

textFieldShouldReturn:

Standard iOS delegate for keyboard handling in text boxes.

- (BOOL)textFieldShouldReturn:(UITextField *)textField

Return Value

<#return value description#>

Declared In

AddChoiceTopicViewController.m

touchesBegan:withEvent:

Standard iOS delegate for dismissing keyboard in text boxes.

- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event

Return Value

<#return value description#>

Declared In

AddChoiceTopicViewController.m

viewDidLoad

Load and initialize the Controller for the Add Choice Topic View

- (void)viewDidLoad

Declared In

AddChoiceTopicViewController.m

viewWillAppear:

Standard iOS delegate when this view is displayed.

- (void)viewWillAppear:(BOOL)animated

Parameters

animated

animated If animated view

Declared In

AddChoiceTopicViewController.m