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

Modernized code #44

Closed
wants to merge 12 commits into from
Closed
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
44 changes: 36 additions & 8 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,11 +1,39 @@
.svn
.idea
*.pyc
.project
.classpath
*.mode1v3
*.pbxuser
*.DS_Store
# Generic files
*~
*.classpath
*.DS_Store
*.idea
*.lock
*.log
*.out
*.svn
*.swp
*.project
*.pyc

# Xcode
#
build/
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
xcuserdata
*.xccheckout
*.moved-aside
DerivedData
*.hmap
*.ipa
*.xcuserstate

# CocoaPods
#
# We recommend against adding the Pods directory to your .gitignore. However
# you should judge for yourself, the pros and cons are mentioned at:
# http://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control
#
# Pods/
12 changes: 6 additions & 6 deletions Classes/HTAutocompleteTextField.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
// Copyright (c) 2012 Hotel Tonight. All rights reserved.
//

#import <UIKit/UIKit.h>
@import UIKit;

@class HTAutocompleteTextField;

Expand All @@ -31,24 +31,24 @@
/*
* Designated programmatic initializer (also compatible with Interface Builder)
*/
- (id)initWithFrame:(CGRect)frame;
- (instancetype)initWithFrame:(CGRect)frame;

/*
* Configure how suggestions are made
*/
@property (nonatomic, assign) BOOL suggestionsDisabled;
@property (nonatomic) BOOL suggestionsDisabled;
@property (nonatomic, weak) id<HTAutocompleteTextFieldDelegate> autocompleteTextFieldDelegate;

/*
* Configure text field appearance
*/
@property (nonatomic, strong, readonly) UILabel *suggestionLabel;
@property (nonatomic, assign) CGPoint suggestionLabelExtraPositionOffset;
@property (nonatomic, readonly) UILabel *suggestionLabel;
@property (nonatomic) CGPoint suggestionLabelExtraPositionOffset;

/*
* Specify a data source responsible for determining autocomplete text.
*/
@property (nonatomic, strong) id<HTAutocompleteSuggestionDataSource> suggestionDataSource;
@property (nonatomic) id<HTAutocompleteSuggestionDataSource> suggestionDataSource;

/*
* Subclassing:
Expand Down
Loading