Skip to content

Commit

Permalink
Using weak reference
Browse files Browse the repository at this point in the history
  • Loading branch information
hackiftekhar committed Aug 26, 2014
1 parent bb01fa6 commit f76f9c9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions KeyboardTextFieldDemo/IQKeyBoardManager/IQKeyboardManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ @implementation IQKeyboardManager
NSInteger animationCurve;

/*! To save UITextField/UITextView object voa textField/textView notifications. */
UIView *_textFieldView;
__weak UIView *_textFieldView;

/*! To save keyboard size. */
CGSize kbSize;
Expand All @@ -101,7 +101,7 @@ @implementation IQKeyboardManager
NSNotification *kbShowNotification;

/*! Variable to save lastScrollView that was scrolled. */
UIScrollView *lastScrollView;
__weak UIScrollView *lastScrollView;

/*! LastScrollView's initial contentOffset. */
CGPoint startingContentOffset;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>3.0.5</string>
<string>3.0.7</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>UIMainStoryboardFile</key>
Expand Down

0 comments on commit f76f9c9

Please sign in to comment.