• Stars
    star
    238
  • Rank 163,553 (Top 4 %)
  • Language
    Objective-C
  • Created over 11 years ago
  • Updated over 8 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Input accessory view with previous, next and done buttons

About

XCDFormInputAccessoryView is a view to be used above the keyboard with previous, next and done buttons for navigating text fields.

screenshot

XCDFormInputAccessoryView uses ARC (Automatic Reference Counting) and must be built with Xcode 4.5 or greater. It has been tested on iOS 4, 5 and 6.

Usage

In your UIViewController subclass, redeclare the inputAccessoryView property and create a new instance of XCDFormInputAccessoryView, for example in your viewDidLoad method:

#import "XCDFormInputAccessoryView.h"

@interface MyViewController ()
@property (nonatomic, strong) XCDFormInputAccessoryView *inputAccessoryView;
@end

@implementation MyViewController
- (void) viewDidLoad
{
	[super viewDidLoad];
	self.inputAccessoryView = [XCDFormInputAccessoryView new];
}
@end

If you want to have total control over what the Previous and Next buttons do, you should initialize XCDFormInputAccessoryView with the initWithResponders: method instead and pass an array of UIResponder instances. If you do not supply an array of responders, then XCDFormInputAccessoryView uses the following heuristic to find which text input views will be used:

  1. Find all text fields and editable text views in the key window
  2. Sort them using their frame origin vertical position

License

The MIT License (MIT) Copyright (c) 2012 Cédric Luthi

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

More Repositories

1

XCDYouTubeKit

YouTube video player for iOS, tvOS and macOS
Objective-C
2,901
star
2

iOS-Artwork-Extractor

Extract iOS artwork and emoji symbols into png files, generate glossy buttons png files
Objective-C
2,615
star
3

xcproj

Command line tool for manipulating Xcode project files
Objective-C
317
star
4

FontReplacer

Easily create nibs with custom fonts
Objective-C
229
star
5

NSUUID

NSUUID implementation for iOS < 6.0 and OS X < 10.8
Objective-C
157
star
6

ABGetMe

ABGetMe implementation for iOS using undocumented APIs (safely)
Objective-C
145
star
7

XCDLumberjackNSLogger

CocoaLumberjack logger which sends logs to NSLogger
Objective-C
96
star
8

MPMoviePlayerController-XCDOverlayView

Overlay view synchronized with playback controls for MPMoviePlayerController
Objective-C
93
star
9

CLITool-InfoPlist

Xcode plugin to process Info.plist file for CLI Tool targets
Objective-C
53
star
10

Stealth-Messenger

Send email, SMS or tweet without any user interaction on iOS
Objective-C
45
star
11

otx

Mach-O disassembler
Objective-C
34
star
12

CLURLConnection

NSURLConnection done right
Objective-C
34
star
13

fulldescription

Recursively print instance variables of an Objective-C object.
Objective-C
30
star
14

SpotColor

Spot Color is a wrapper around the built-in Mac OS X color picker so you can use it as a stand alone app
Objective-C
27
star
15

quietxcode

Silences the "malloc: free_garbage: garbage ptr ..." Xcode warnings
Objective-C
15
star
16

pdfrasterize

Command line tool for converting PDF documents to various bitmap formats
Objective-C
13
star
17

NoLastUpgradeCheck

Xcode 4 plugin that prevents LastUpgradeCheck attribute alteration
Objective-C
13
star
18

otx-bblm

BBEdit/TextWrangler language module for otx disassemblies
C
12
star
19

crippng

QuickLook plugin to read crippled iPhone png files
C
12
star
20

Twexpand

SIMBL plugin for displaying full URLs in your favorite Twitter client
Objective-C
11
star
21

APELite-arm

Implementation of the APE Lite API for iPhone OS (ARM) using MobileSubstrate
C++
9
star
22

Touchpose

Touchposé is a set of classes for iOS that renders screen touches when a device is connected to a mirrored display.
Objective-C
6
star
23

DCIntrospect

Small library of visual debugging tools for iOS.
Objective-C
5
star
24

xmldocument

A lightweight XML Document class for iOS.
Objective-C
4
star
25

DocZoom

Usable Xcode documentation Pinch-to-Zoom
Objective-C
4
star
26

SingleFileAppDependencyContext

Experiments with single-file applications and Microsoft.Extensions.DependencyModel
C#
2
star
27

objc-dependency-visualizer

Objective-C and Swift dependency visualizer. It's tool that helps to visualize current state of your project. It's really easy to see how tight your classes are coupled.
JavaScript
2
star
28

DbContextValidation

DbContext validation against an actual database
C#
2
star
29

cocoafob

A set of registration code generation and verification helpers for Obj-C and Ruby (Potion Store)
Objective-C
2
star
30

iCalColors

SIMBL Plugin that allows you to customize today and selected day colors
Objective-C
1
star
31

codacy-coverage-reporter

Multi-language coverage reporter for Codacy
Scala
1
star
32

RidGraph

Generate visualizable .NET runtime identifier graphs
C#
1
star
33

KeychainCredentials

Implementation of the System.Net.ICredentials interface using the macOS Keychain for .NET
C#
1
star
34

radars

Sample code for bugs submitted to bugreport.apple.com
Objective-C
1
star