Skip to content

Commit

Permalink
Added CocoaPods podspec file
Browse files Browse the repository at this point in the history
  • Loading branch information
alexruperez committed Aug 4, 2014
1 parent 53e4536 commit f3357f5
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@
*~
*.swp
xcuserdata
xcshareddata
14 changes: 14 additions & 0 deletions ARAutocompleteTextView.podspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Pod::Spec.new do |s|
s.name = 'ARAutocompleteTextView'
s.version = '0.0.1'
s.summary = "Subclass of UITextView that automatically displays text suggestions in real-time."
s.homepage = 'https://github.com/alexruperez/ARAutocompleteTextView'
s.screenshots = 'https://raw.githubusercontent.com/alexruperez/ARAutocompleteTextView/master/ARTextViewAutocompletion.png'
s.license = 'MIT'
s.author = { "alexruperez" => "[email protected]" }
s.social_media_url = 'https://twitter.com/alexruperez'
s.platform = :ios
s.source = { :git => 'https://github.com/alexruperez/ARAutocompleteTextView.git', :tag => '0.0.1' }
s.source_files = 'ARAutocompleteTextView', "Classes/*.{h,m}"
s.requires_arc = true
end
2 changes: 2 additions & 0 deletions ARTextViewAutocompletionExample.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,7 @@
8DF4A828168B7C610025E16D /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
CODE_SIGN_IDENTITY = "iPhone Developer";
GCC_PRECOMPILE_PREFIX_HEADER = YES;
IPHONEOS_DEPLOYMENT_TARGET = 6.0;
PRODUCT_NAME = "$(TARGET_NAME)";
Expand All @@ -279,6 +280,7 @@
8DF4A829168B7C610025E16D /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
CODE_SIGN_IDENTITY = "iPhone Developer";
GCC_PRECOMPILE_PREFIX_HEADER = YES;
IPHONEOS_DEPLOYMENT_TARGET = 6.0;
PRODUCT_NAME = "$(TARGET_NAME)";
Expand Down
11 changes: 7 additions & 4 deletions ARTextViewAutocompletionExample/ARAutocompleteManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,8 @@ - (NSString *)textView:(ARAutocompleteTextView *)textView
@"rambler.ru",
@"temple.edu",
@"cinci.rr.com",
@"alexruperez.com"];
@"alexruperez.com",
@"gigigo.com"];
});

// Check that text field contains an @
Expand Down Expand Up @@ -257,9 +258,11 @@ - (NSString *)textView:(ARAutocompleteTextView *)textView
static NSArray *colorAutocompleteArray;
dispatch_once(&colorOnceToken, ^
{
colorAutocompleteArray = @[ @"Alfred",
colorAutocompleteArray = @[ @"Alex",
@"Alfred",
@"Beth",
@"Carlos",
@"Cris",
@"Daniel",
@"Ethan",
@"Fred",
Expand All @@ -268,14 +271,14 @@ - (NSString *)textView:(ARAutocompleteTextView *)textView
@"Inis",
@"Jennifer",
@"Kylie",
@"Liam"
@"Liam",
@"Melissa",
@"Noah",
@"Omar",
@"Penelope",
@"Quan",
@"Rachel",
@"Seth"
@"Seth",
@"Timothy",
@"Ulga",
@"Vanessa",
Expand Down
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,14 @@ In addition to observing the standard `UITextView` notifications (i.e. `UITextVi
# Etc.

* Use this in your apps whenever you can, particularly email addresses -- your users will appreciate it!
* Ready to work with [alexruperez/STTweetLabel](https://github.com/alexruperez/STTweetLabel).
* Contributions are very welcome.
* Attribution is appreciated (let's spread the word!), but not mandatory.

## Use it? Love/hate it?

Tweet the author @alexruperez, and check out alexruperez's blog: http://alexruperez.com

## Other Links

[code4app Review](http://code4app.net/ios/ARAutocompleteTextView/528d8d86cb7e8464178b4e35)
[Cocoa Controls](http://cocoacontrols.com/controls/arautocompletetextview)

0 comments on commit f3357f5

Please sign in to comment.