SDCAlertView not dismissing text field keyboards in iOS 11 - ios

"Manual" alerts work fine with text fields and dismiss keyboards when an action is clicked.
With SDCAlertView the text fields are not dismissed.
Have not updated to Swift 4. Kept everything as is. Only running on iOS 11.
Eg. from the demo project: http://file.5ep4r0.com/fAMsWuV.mp4
Thanks

Related

XCode, objective C - Keyboard WILL NOT SHOW

I've taken over the work on an iOS app, I've managed to work quite well with it thus far adding new functionality despite not being a trained iOS developer. However I've hit a patch where I simply cannot get the keyboard to show on screen when I tap on a UITextfield, there are areas of the app where it works but any new areas I add this simply will not work. Is there a standard bit of code that controls showing the keyboard when you tap a text field?
Need help
Keyboard opens up automatically unless you forced to not open.
You can check following, See screenshots.
Enable is checked
User Interaction Enable is checked
If you are checking on simulator try “command + k” from keypad
textFieldShouldBeginEditing delegate returns TRUE
-(BOOL)textFieldShouldBeginEditing:(UITextField *)textField{
return TRUE;
}
Are you running on a simulator or a real device?

TPKeyboardAvoiding scrollview defaults to wrong return key type 'Done' in iOS not UIReturnKeyNext

I have used this keyboard avoiding library https://github.com/michaeltyson/TPKeyboardAvoiding in many iOS projects.It works as expected but in a project it is producing a weird issue where return key title is always 'Done' instead of 'Next'.Functionality is still correct like tapping on keyboard 'Done' is making the below UITextField first responder and Tapping the last keyboard 'Done' is resigning the keyboard.
I have used it many iOS versions and both Objective-C and swift projects without any issue
Currently using xcode 8.3.2 with swift
Anyone have similar issue or know the reason for this issue.
[]]
Found this on the github page:
"To disable the automatic "Next" button functionality, change the UITextField's return key type to anything but UIReturnKeyDefault."
This could be the reason for your problem.

Use existing custom keyboard code xcode

I have only custom keyboard code not full project code. I don't know how to integrate in my app or in new app. In custom keyboard some code is used that is not reachable for custom keyboards. Can any tell me how can i use this code. I know that i can make a new project with custom keyboard templCete but it doesn't work for me
In your current app add new keyboard extension as follows
go to file/New/target/Application Extension/Custom keyboard
give some name for keyboard.
Then in your app file list "KeyboardViewController" class added.
open that KeyboardViewController.m file and just replace that keyboard code which you have.
Before running app in simulator or device first go to device
Setting->General->keyboard->keyboards->add new keyboard
add your custom keyboard there
and run the app.

Why does the Keyboard not show when editing UITextField?

I have a ios8 project in XCode 6.1 using size classes. At somepoint in development, the Keyboard stopped displaying while editing a UITextField. To debug, I made simple UIViewController with a single UITextField in a different storyboard in the project, and the keyboard would not display for that UITextField either.
I then made an entirely new project and a simple UIViewController and a single UITextField and the keyboard DID work correctly.
I've looked at all the settings in the project and could find nothing that looks like it affects the keyboard.
Any ideas on what is going on?
If this happen only in the simulator then go to
Hardware Menu->Keyboard->Toggle Software Keyboard
or use shortcut key
cmd+k
Go to simulator -> Hardware then
then click on Toggle Softwate Kwyboard, then you will get key board for TextField

Accessing and Enable/disable UIViewalert Button in ios 7 and earlier

I am stuck on Accessing uialertview buttons in ios 7 . when googling i read ios 7 did not allow to customize or chenging the uialert view button .
I want to do these functionality in my project my deployment target is 5.0-
->I want to disable AlertView first button disable for 15 second with its title like this
OK(15),OK(14)......OK(0),OK(with user enable). After completion 15 seconds user can tap to the ok button to dismiss the alert view .
please suggest me how to do this.
Can i get the ok (fist button) of alert view and can change its title as i write above .
Or
i have to use custom alert view .
I want to show the default looking UIAlert which match with IOS 7 and earlier version Ui
Thanks .

Resources