Giter Club home page Giter Club logo

iqkeyboardmanager's People

Contributors

afrozzaheer avatar agapovone avatar andreybog avatar artfintch avatar bitdeli-chef avatar bj97301 avatar daniil108 avatar ealeksandrov avatar esttorhe avatar hackiftekhar avatar heefanlee avatar hyun99999 avatar iamamused avatar ideviftekhar avatar jacksonjang avatar kgn avatar kinarobin avatar kingslayyerr avatar metinn avatar muzahidul-opti avatar readmecritic avatar retsohuang avatar richardtop avatar rockerhx avatar sadiq81 avatar theoks avatar tizaks avatar toohotz avatar wolfcon avatar yurihan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

iqkeyboardmanager's Issues

iOS6.0 Memory Leak While Using IQKeyboardManager

Hello hackiftekhar.In my app i am using IQKeyboardManager. Its all working perfectly fine.But when i go for profile testing i am facing memory leak.I was impatient, please fix as soon as possible.Thank you very much!
2014-07-02 4 11 42

Previous, Next, Done button are set to White Color by default ?

Hi Mohd Iftekhar Qurashi,
I would to congratulate for making such an excellent control.
However when i set color using appearance class.

Previous, Next, Done buttons appears in white color.

I have attached screen shot as follows for the same:

ios_simulator_screen_shot_jul_2__2014__11_11_25_am

AppDelegate.m

 - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
 {
   if (SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(@"7.0")) {

    [[UINavigationBar appearance]setBarTintColor:[UIColor whiteColor]];
  [[UIBarButtonItem appearance] setTintColor:[UIColor whiteColor]];
    } else {

        [[UINavigationBar appearance]setTintColor:[UIColor whiteColor]];

   }

     [[UINavigationBar appearance]setBackgroundImage:[UIImage  imageNamed:@"invite_friend_notify_bar"] forBarMetrics:UIBarMetricsDefault];


    NSDictionary *attributes = [NSDictionary dictionaryWithObjectsAndKeys:
                            [UIFont fontWithName:@"Helvetica-Light" size:20],  NSFontAttributeName,
                                [UIColor whiteColor], NSForegroundColorAttributeName, nil];

     [[UINavigationBar appearance] setTitleTextAttributes:attributes];


      [[UIBarButtonItem appearance] setTintColor:[UIColor whiteColor]];
 }

In the WebView

if you app has inputfield in the WebView , it can not get the topViewBeginRect of the topMostController ,So when the keyboard hide, the topMostController 's frame will be set to CGRectZero.

Social Framework

not sure if this is a bug, but when presenting a SLComposeViewcontroller i get a crash with bounds NaN

conflict with Stripe/PaymentKit

Stripe PaymentKit is a control for collecting credit card numbers. I'd like to use it together with IQKeyboardManager. The conflict is that IQKeyboardManager somehow prevents the PaymentKit from managing its UITextField's frames, resulting in overlapping of words.

I have tried disabling IQKeyboardManager's properties but have no success so far.

How to handle the return button

Hi,

The previous/next/done buttons in the toolbar works perfectly. However, there is still the return button on the bottom right corner that does not do anything useful. I would like it to behave just like the next button for most fields. I can implement textFieldShouldReturn to handle the return button but I will have to rewrite the logic to move to the next text field. Could you expose something like moveNext in the IQKeyboardManager (basically exposing IQKeyboardManager.nextAction).

Thanks!

How to customize inputAccessoryView in IQKeyboardManager?

I need to customize accessory view with the specific background color or want to add some button in keyboard toolbar.

My IQKeyboardManager configuration

[[IQKeyboardManager sharedManager] setEnable:YES];
[[IQKeyboardManager sharedManager] setEnableAutoToolbar:YES];
[[IQKeyboardManager sharedManager] setShouldResignOnTouchOutside:YES];

I cannot disable the manager

#import < IQKeyboardManager/IQKeyboardManager.h >

 - (void)viewDidLoad{
    [super viewDidLoad];
    [[IQKeyboardManager sharedManager] setEnable:NO];

// All my textfields and UITextViews are in the Interface Builder.

Enable property is just not working...

Incorrect Toolbar size (Issue #52) when textfield in embedded view controller

In my case the viewController that has the text field on it is a child view controller and is embedded into another one. In this case, the width of toolbar is taken from the child view controller. Why is this even done this way? Toolbar should always be same width as keyboard, regardless of what view controller is presenting it.

customizing Done button

Is there a way to change title of done button or put and image for the button instead of text, by accessing the button object!?

i just need to change it's name from done to hide. no need to change the functionalty

if i used IQToolbarAddition category methods like addRightButtonOnKeyboardWithText:target:action
i will add my custom button to each textfield..

just thinking of doing this to every text filed give me pain :(

Problem for iPad's floating keyboard

For iPad,

  1. tap a UITextField on bottom of the screen, the keyboard appears and the whole window moves up.
  2. hold the "Hide keyboard" button in the right bottom corner of keyboard, choose "Undock", the keyboard moves to the middle of screen and the whole window moves down.
  3. click "Done" button on the UISegmentedControl bar. The keyboard moves down.
  4. click above UITextField again.
  5. click "Done" button on the UISegmentedControl bar. The keyboard moves down and the whole window keeps floating a distance above.

Issue or Bug with Text View

Hello,

First of all I would like to thank you for such a brilliant and nice tool!!
Now, I want to inform you that, in IOS7 but also in IOS6 with TEXT VIEW it doesn't work well. The keyboard when comes up covers the toolbar ( if one exists ) and scrolls the navigation bar out of view.
Can you please check and correct?

Thank you very much in advance!

George N. Gerardis

Setting title for each textField

Hi, i'm trying to set a tittle for the keyboard toolbar for each text field...

I managed to set a fixed title, by adding a UIBarButtonItem between 2 "nilButton"...

What i'm trying to do now is change this title every time the selected textFiled is change, to show, for example, the title "Name" when the name texfield is being filled, "Date" when the date textfield is being filled....

How should i do that ?

Thank you

bug in new keywindow (custom alertsheet)

When have a new window like custom alertsheet it will some bug
rootViewController and keyWindow should be weak not strong
otherwise keyWindow cannot be release

当有一个新的Window的时候比如自定义带输入框的弹出框,就会有BUG,输入框高度不变,底下的View却被提上去了,另外如果属性不改成weak会造成退出alertView后界面点击不了,无法进行任何操作,因为弹出框的Window不能释放。

@Property(nonatomic, weak, readonly) UIViewController *rootViewController;
@Property(nonatomic, weak, readonly) UIWindow *keyWindow;

-(UIViewController *)rootViewController
{
// if (_rootViewController == nil)
_rootViewController = [[self keyWindow] rootViewController];
return _rootViewController;
}

-(UIWindow *)keyWindow
{
// if (_keyWindow == nil)
_keyWindow = [[UIApplication sharedApplication] keyWindow];
return _keyWindow;
}

this code work for me.
我改成上面的代码后就成功了,不过没有测试对其它功能的影响。理论上没有什么副作用。

No keyboard show on iOS 8

Hi,

I've tried with iOS 8 and see that no keyboard showing. Please check the attached image for more details.

Hope it will be fixed soon.

Cheers,
Hugo

ios simulator screen shot aug 21 2014 15 01 52

BUG or Issue....

Hello,

First of all I would like to thank you for such a brilliant and nice tool!!
Now, I want to inform you that, in IOS7 but also in IOS6 with ScrollView containing a textview it doesn't work well. The keyboard when comes up scrolls the navigation bar out of view with textview.
I can see only the half bottom part of textview.....
Can you please check and correct?

Thank you very much in advance!

George Gerardis

Keyboard dismiss without reseting frame on UITextView (non-editable) text selection

Hi
I'm currently having a bit of a problem with textviews.
I have a UITableView recovering a part of my main view which contains non-editable UITextViews and a small view at the bottom of my screen containing an editable UITextView.

I have set shouldResignOnTouchOutside to false and my main view is a UIScrollView.

The problem is, when I have the focus on my editable UITextView and I want to select some text from another UITextView, keyboard hides but my main view's position won't reset.

I figured this line inside keyboardWillHide:(NSNotification*)aNotification (from IQKeyboardManager.m) is the reason but I didn't find any way to patch it:
if (_textFieldView == nil) return;

Indeed, it seems like selecting text from a non-editable UITextView won't call either UITextViewTextDidBeginEditingNotification or UITextViewTextDidChangeNotification but will call UITextFieldTextDidEndEditingNotification and UIKeyboardWillHideNotification.

I don't know if I am missing something, but I hope you can help me.

Thank you.

Not working if I have to login first

Quite wierd problem.

The pod works great if I run the app and I'm already logged in.

If I reset my credentials and either 'register' or 'login' (These views also contain UITextFields but not at the bottom of the app)
Then upon logging in, the IQKeyboardManager is no longer working.

I still get 'Keyboard Manager enabled' at the start of the app.

Localizing Next / Prev buttons.

There is some way to change or localize the text of the Prev / Next button that appears when using the toolbar in IOS 6?
Thanks.

iOS7 Titelbar Problem

Hi,

when I use this very nice Keyboardmanager under iOS7 a black blank Status Bar stays on top of the screen and pushes the original screen down. This happens, if IQKeyboardManager needs to scrolll the view to allow editing fields which would be covered when the keyboard appears.

Any solution for that issue? My workaround is to hide the titlebar of iOS on all views that need to scroll during textedit.

Doesn't seem to have any effect

What I did was to copy IQKeyboardManager.h and IQKeyboardManager.m into my project, and in AppDelegate, I changed the didFinishLaunchingWithOptions to be like this:

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
    // Override point for customization after application launch.
    [[IQKeyboardManager sharedManager] setEnable:YES];
    return YES;
}

Then I ran my project in both simulator and my iPhone. It doesn't have any effect.

Set the keyboard language

Hello guys,

Congrats on the great work.

Could you implement an autoswitch of the language - a certain field to open a certain keyboard language. This would be extremely useful for an app where some fields require input in another language.

Many thanks

BUG or Issue

Hello,

First of all I would like to thank you for such a brilliant and nice tool!!
Now, I want to inform you that, in IOS7 but also in IOS6 with textView it doesn't work well. The keyboard when comes up covers the toolbar ( if one exists ) and scrolls the navigation bar out of view.
Can you please check and correct?

Thank you very much in advance!

George N. Gerardis

Next Previuos button doesn't show

I used tableview to create a simple view to register . I used texfield for each cell. But i cannot see next previous button on that.
Can you tell me what am i doing wrond?
ios simulator screen shot feb 3 2014 1 44 28 pm

P.S. It is working well when i use a normal view with textfield.

UI/UX suggestion.

Good and useful library. Thanks!

I think it will be more user-friendly to not to hide navigation bar.
Just make it static and scroll only textfields superview.

Cheers!

NSLog will not ouput

Hi,

I found when I use IQKeyboardManager in my view controller, all the NSLog() cannot give output message, however, when I comment out #import "IQKeyboardManager.h and related IQKeyboard code, my NSLog can give output.

May I know what's the issue? I just use one line [[IQKeyboardManager sharedManager] setEnable:YES]; on UITextView with simplest UIViewController.

Thanks

Xcode 6/iOS 8 Issues

Currently, when building an application using IQKeyboardManager in Xcode 6 I am running into odd behavior. I have a landscape only application. When the target is set to iOS 8, the window slides to the left rather than up and the keyboard does not appear. When the target is set to iOS 7.0.1, the keyboard does not appear.

Screenshots attached:
xcode6ios8

xcode6ios7

How to scroll tableView to it's initial state

I have tableView with 4 custom cells(with textField) and it's height is 44x4. Keyboard moves the textField up. But when the keyboard is hidden, tableView doesn't scroll up.

Does IQKeyboardManager handle this situation or should i use UIKeyboardWillHideNotification

Here is a screenshot:
screen shot 2014-03-23 at 23 29 00

Why SearchBar Do not work?

I have a searchbar, i find that iqkeyboardmanager do not deal mask. but textfield is right. how can i to do ?

Cached toolbars do not respect enabling/disabing textfields

So if you tap into a UITextField and its siblings are disabled, it will not display the move arrows. When those fields are later enabled, the move arrows will still not display. This is because inputAccessoryView field is stored into the UITextField and is only recreated if it is nil.

EKEventEditViewController & Notes Textview

Hi,

I use your tool in all my project.
My bug is with EKEventEditViewController and the Textview for "Notes"

My view scroll to the end, so far I can't see the text view anymore.

I use :
[[IQKeyboardManager sharedManager] setEnable:YES];
[[IQKeyboardManager sharedManager] setEnableAutoToolbar:YES];
[[IQKeyboardManager sharedManager] setShouldResignOnTouchOutside:YES];

Any idea?

[iOS 7] UITextField inside UITableViewCell

With iOS7, Apple has changed UITableViewContentView subviews and added a UITableViewCellScrollView. When IQKeyboardManager tries to find the super scrollview, it returns the UITableViewCellScrollView and the UITableView is not scrolled properly.
I can fix this issue by testing the instance type inside the "superScrollView" method

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.