forked from mohamede1945/NextResponderTextField
-
Notifications
You must be signed in to change notification settings - Fork 0
/
NextResponderTextField.podspec
55 lines (45 loc) · 2.22 KB
/
NextResponderTextField.podspec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#
# Be sure to run `pod lib lint NextResponderTextField.podspec' to ensure this is a
# valid spec and remove all comments before submitting the spec.
#
# Any lines starting with a # are optional, but encouraged
#
# To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html
#
Pod::Spec.new do |s|
s.name = "NextResponderTextField"
s.version = "1.0.1"
s.summary = "Automatically moves to the next UITextField when tapping the keyboard action button"
s.description = <<-DESC
Represents a next responder UITextField.
When the instance becomes first responder, and then the user taps the action button (e.g. return keyboard key)
then one of the following happens:
1. If no nextResponderField set, keyboard dismissed.
2. If nextResponderField is a UIButton and disabled, then keyboard dismissed.
3. If nextResponderField is a UIButton and enabled, then the UIButton fires touch up inside event (simulating a tap).
You can set nextResponderField to any UIResponder subclass, and it will become first responder when tapped.
But having multiple NextResponderTextField pointing to each other, then you can go to next field.
The typical usage will be list of NextResponderTextField and the last one point to a UIButton.
For example a login screen:
Username -> NextResponderTextField
Password -> NextResponderTextField
Sign In -> UIButton
Username.nextResponderField -> Password
Password.nextResponderField -> Sign In
DESC
s.homepage = "https://github.com/mohamede1945/NextResponderTextField"
s.screenshots = "https://raw.githubusercontent.com/mohamede1945/NextResponderTextField/master/screenshots/demo.gif"
s.license = 'MIT'
s.author = { "Mohamed Afifi" => "" }
s.source = { :git => "https://github.com/mohamede1945/NextResponderTextField.git", :tag => s.version.to_s }
s.social_media_url = 'https://twitter.com/mohamede1945'
s.platform = :ios, '8.0'
s.requires_arc = true
s.source_files = 'Pod/Classes/**/*'
s.resource_bundles = {
'NextResponderTextField' => ['Pod/Assets/*.png']
}
# s.public_header_files = 'Pod/Classes/**/*.h'
# s.frameworks = 'UIKit', 'MapKit'
# s.dependency 'AFNetworking', '~> 2.3'
end