Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resign the previous responder. #11

Open
wants to merge 19 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 15 additions & 2 deletions Form Input Accessory View Demo.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
objects = {

/* Begin PBXBuildFile section */
0117847C194EDF19007CA22F /* XCDButtonBarArrow.bundle in Resources */ = {isa = PBXBuildFile; fileRef = 0117847B194EDF19007CA22F /* XCDButtonBarArrow.bundle */; };
C215427C164FD1C800262EB1 /* [email protected] in Resources */ = {isa = PBXBuildFile; fileRef = C2154275164FD1C800262EB1 /* [email protected] */; };
C215427D164FD1C800262EB1 /* Default.png in Resources */ = {isa = PBXBuildFile; fileRef = C2154276164FD1C800262EB1 /* Default.png */; };
C215427E164FD1C800262EB1 /* [email protected] in Resources */ = {isa = PBXBuildFile; fileRef = C2154277164FD1C800262EB1 /* [email protected] */; };
Expand All @@ -21,6 +22,7 @@
/* End PBXBuildFile section */

/* Begin PBXFileReference section */
0117847B194EDF19007CA22F /* XCDButtonBarArrow.bundle */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.plug-in"; path = XCDButtonBarArrow.bundle; sourceTree = "<group>"; };
C2154275164FD1C800262EB1 /* [email protected] */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "[email protected]"; sourceTree = "<group>"; };
C2154276164FD1C800262EB1 /* Default.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = Default.png; sourceTree = "<group>"; };
C2154277164FD1C800262EB1 /* [email protected] */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "[email protected]"; sourceTree = "<group>"; };
Expand Down Expand Up @@ -54,6 +56,14 @@
/* End PBXFrameworksBuildPhase section */

/* Begin PBXGroup section */
0162EE941912A712002EF274 /* Resources */ = {
isa = PBXGroup;
children = (
0117847B194EDF19007CA22F /* XCDButtonBarArrow.bundle */,
);
path = Resources;
sourceTree = "<group>";
};
C2F07133164DCA75008F4BA2 = {
isa = PBXGroup;
children = (
Expand Down Expand Up @@ -103,11 +113,13 @@
C2F07169164F0E1E008F4BA2 /* XCDFormInputAccessoryView */ = {
isa = PBXGroup;
children = (
0162EE941912A712002EF274 /* Resources */,
C2F0716A164F0E32008F4BA2 /* XCDFormInputAccessoryView.h */,
C2F0716B164F0E32008F4BA2 /* XCDFormInputAccessoryView.m */,
);
path = XCDFormInputAccessoryView;
sourceTree = "<group>";
usesTabs = 1;
};
/* End PBXGroup section */

Expand Down Expand Up @@ -164,6 +176,7 @@
C215427D164FD1C800262EB1 /* Default.png in Resources */,
C215427E164FD1C800262EB1 /* [email protected] in Resources */,
C2154281164FD1C800262EB1 /* MainStoryboard.storyboard in Resources */,
0117847C194EDF19007CA22F /* XCDButtonBarArrow.bundle in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down Expand Up @@ -207,7 +220,7 @@
GCC_WARN_ABOUT_RETURN_TYPE = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 5.0;
IPHONEOS_DEPLOYMENT_TARGET = 7.0;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
TARGETED_DEVICE_FAMILY = "1,2";
Expand Down Expand Up @@ -235,7 +248,7 @@
GCC_WARN_ABOUT_RETURN_TYPE = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 5.0;
IPHONEOS_DEPLOYMENT_TARGET = 7.0;
SDKROOT = iphoneos;
TARGETED_DEVICE_FAMILY = "1,2";
VALIDATE_PRODUCT = YES;
Expand Down
7 changes: 6 additions & 1 deletion Form Input Accessory View Demo/DemoViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,12 @@ - (UIView *) inputAccessoryView
{
if (!_inputAccessoryView)
{
_inputAccessoryView = [[XCDFormInputAccessoryView alloc] initWithResponders:self.textInputs];
// To use black colored toolbar
// [[UIToolbar appearance] setBarTintColor:[UIColor blackColor]];
//_inputAccessoryView = [[XCDFormInputAccessoryView alloc] initWithResponders:self.textInputs tintColor:[UIColor whiteColor]];

_inputAccessoryView = [[XCDFormInputAccessoryView alloc] initWithResponders:self.textInputs];

//_inputAccessoryView = [[XCDFormInputAccessoryView alloc] init];
//_inputAccessoryView = [[NSClassFromString(@"UIWebFormAccessory") alloc] init];
}
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ About
=====
`XCDFormInputAccessoryView` is a view to be used above the keyboard with *previous*, *next* and *done* buttons for navigating text fields.

![screenshot](https://github.com/0xced/XCDFormInputAccessoryView/raw/master/Screenshots/XCDFormInputAccessoryView.png)
![screenshot](Screenshots/XCDFormInputAccessoryView.png)

`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.
`XCDFormInputAccessoryView` uses ARC (Automatic Reference Counting) and must be built with Xcode 4.5 or greater.

Usage
=====
Expand Down Expand Up @@ -38,4 +38,4 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of

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.
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.
Binary file modified Screenshots/XCDFormInputAccessoryView.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 12 additions & 2 deletions XCDFormInputAccessoryView/XCDFormInputAccessoryView.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,21 @@

@interface XCDFormInputAccessoryView : UIView

- (id) initWithResponders:(NSArray *)responders; // Objects must be UIResponder instances
/**
* Objects must be UIResponder instances
*/

- (instancetype) initWithResponders:(NSArray *)responders;

- (instancetype) initWithResponders:(NSArray *)responders tintColor:(UIColor *)tintColor;

@property (nonatomic, strong) NSArray *responders;

@property (nonatomic, assign) BOOL hasDoneButton; // Defaults to YES on iPhone, NO on iPad
/**
* Defaults to YES on iPhone, NO on iPad
*/

@property (nonatomic, assign) BOOL hasDoneButton;

- (void) setHasDoneButton:(BOOL)hasDoneButton animated:(BOOL)animated;

Expand Down
Loading