forked from mehfuzh/MHTextField
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMHTextField.podspec
53 lines (36 loc) · 2.38 KB
/
MHTextField.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
Pod::Spec.new do |s|
s.name = "MHTextField"
s.version = "0.5"
s.summary = "MHTextField is an iOS drop-in class that extends UITextField with built-In toolbar, validation and scrolling support"
s.description = <<-DESC
#MHTextField [![Build Status](https://travis-ci.org/mehfuzh/MHTextField.png?branch=master)](https://travis-ci.org/mehfuzh/MHTextField)
MHTextField is an iOS drop-in class that extends UITextField with built-in toolbar, validation and scrolling support.
[![](https://raw.github.com/mehfuzh/MHTextField/gh-pages/demo.gif)](https://raw.github.com/mehfuzh/MHTextField/gh-pages/demo.gif)
##Requirements
MHTextField works on iOS 5 and above and is compatible with ARC projects. It depends on the following Apple frameworks:
* Foundation.framework
* UIKit.framework
##Including MHTextField to your project
### Source files
You can directly add the `MHTextField.h` and `MHTextField.m` source files to your project.
1. Download the latest zip from github or clone the source in your desired directory.
2. Open your project in Xcode, then drag and drop `MHTextField.h` and `MHTextField.m` onto your project (use the "Product Navigator view"). Make sure to select Copy items when asked if you extracted the code archive outside of your project.
3. Include MHTextField with `#import "MHTextField.h"`.
### Cocoapods
[CocoaPods](http://cocoapods.org) is the recommended way to add MHTextField to your project.
1. Add a pod entry for MHTextField to your Podfile `pod 'MHTextField', '~> 0.5'`
2. Install the pod(s) by running `pod install`.
3. Include MHTextField with `#import "MHTextField.h"`.
## License
This code is distributed under the terms and conditions of the [MIT license](LICENSE).
DESC
s.homepage = "https://github.com/mehfuzh/MHTextField"
s.screenshots = "http://mehfuzh.github.io/MHTextField/shot2.png", "http://mehfuzh.github.io/MHTextField/shot3.png", "http://mehfuzh.github.io/MHTextField/shot3.png", "http://mehfuzh.github.io/MHTextField/shot4.png"
s.license = 'MIT'
s.author = { "Mehfuz Hossain" => "[email protected]" }
s.platform = :ios, '5.0'
s.ios.deployment_target = '5.0'
s.source = { :git => "https://github.com/mehfuzh/MHTextField.git", :tag => '0.5'}
s.source_files = 'MHTextField.{h,m}'
s.requires_arc = true
end