SFormSegmentedControl Class Reference

Inherits from UISegmentedControl
Declared in SFormSegmentedControl.h
Availability
Related samples

Overview

A UISegmentedControl subclass with extended editing events.

This subclass extends UISegmentedControl to provide a writable inputView and inputAccessoryView giving the control an input view and input accessory view.

Properties

inputAccessoryView

The custom input accessory view to display when the receiver becomes the first responder.

@property (nonatomic, readwrite) UIView *inputAccessoryView

Declared In

SFormSegmentedControl.h

inputView

The custom input view to display when the receiver becomes the first responder.

@property (nonatomic, readwrite) UIView *inputView

Declared In

SFormSegmentedControl.h

Instance Methods

insertSegment:atIndex:animated:

Insert an image or a string at the specified segment index.

- (void)insertSegment:(id)segmentContent atIndex:(NSUInteger)index animated:(BOOL)animted

Parameters

segmentContent

A UIImage or an NSString to insert.

index

The index to insert at.

animated

Whether the insertion is animated.

Discussion

There will be no effect if segmentedContent isn’t an NSString or UIImage.

Declared In

SFormSegmentedControl.h