iOS Email keyboard customize - ios

In my app, I have a UITextField using UIKeyboardTypeEmailAddress.
There is space key in bottom centre. I think space key is no needed.
So I'd like to change the key to gmail.com or hotmail.com.
Is it possible?
Even if it's possible, Apple will approve it?

Yes, instead of using UIKeyboardTypeEmailAddress you could design your own input view (which I suppose in your case would be whatever keyboard you design) and then set that as the input view of your text field.
Sample code can be seen in this tutorial, and more information can be found in this official Apple documentation.

Related

Add hyperlink to Apple Passbook front page

I tried to find solution for this across lot of resources on the internet including the Passbook documentation but I didn't have any success.
I know it's possible to add hyperlink on the back of the Passbook but that's not something I can use.
I'm trying to create a Passbook with the logo, date and title on the top, two hyperlinks (buttons) in the middle and the barcode in the bottom of the Passbook.
Thanks in advance!
No, it's not possible to add hyperlinks to the fields on the front of a pass. The data detector behaviour of Wallet only applies to back fields.
https://developer.apple.com/library/content/documentation/UserExperience/Reference/PassKit_Bundle/Chapters/FieldDictionary.html#//apple_ref/doc/uid/TP40012026-CH4-SW5
Under the Standard Field section, you'll see mention of dataDetectorTypes. It's stated there.

Customising the Decimal pad in my app

Swift...
So I've got an existing app and I'm working on its appearance. The current task is customising the decimal pad that pops up when the user hits a textField.
I've looked around on how to make it but it always seems that you have to go into the iPhone/ipad settings and add the custom keyboard.
eg. This StackOverFlow Question
and they all seem to point to this same tutorial..
iOS 8: Creating a Custom Keyboard
My problem is that I don't want the user to have to go into settings.
So the question is....IS THIS POSSIBLE?
The following pic is what I want to use. I have made this in an XIB file through adding a target keyboard which makes the new folder with KeyboardViewController.swift , info.plist and NumPad.xib. Though i think I'm on the wrong track, can someone point me the right way please.
Also anyone know the exact dimensions this view should be.. assuming what I'm asking is in fact possible. Let me know if I'm not being clear enough!
NumPad.xib(pic)
Many many thanks,
Steve
SOLUTION: Thanks to Andrea for correcting my search keywords. It led me to this Stack Question which hopefully sends some others to the correct end of the internet that have mistakes custom keyboard with custom input views!
Sure it is possible without going into settings, but they are called custom input views.
You should look into inputViews here what Apple says about them Custom views for data input.
Basically when the user press a text field instead of loading the usual keyboard it loads an inputView that you specify, pay attention that custom keyboard term is misleading. If you google for tutorial you'll find most probably link like the ones that you found.
For a practical example check this tutorial or this, is a little bit old, but the principle are still the same

Is there anyway I can change the size of the title for an apple watch app?

Is there anyway I can change the size of the title for an apple watch app?
The one that shows up on top left corner.
Take a look at this. It's the Apple development guide.
Also look into this. It's specific to Apple Watch App labels.
Edit:
This link specifically has the methods and properties used to resize label text within an Apple Watch App.
Both of these were found via a simple Google search. If you want help with a code block specifically, please edit your original question to add that code.
I also have the same issue. You can "kind of" solve it by using a group. Paste the group in, layer it over with another group and put the label inside there, change your label size by dragging the corners. That centers it. I don't think Apple has added the capability to freely move around labels like iOS View Controllers. I hope that helps for now :)

Create text field with keyboard in Xcode

Is there any way to make a text field with keyboard (such as Twitter or Whatsapp)?
I tried to find some help from Google but I could not.
Can anyone help me with this issue or at least to direct me where I can find some info?
You can use the built-in UITextField for the text, but I assume your problem is with getting the field to rise with the keyboard when the user selects it.
This is a bit of a tricky problem, but the general solution is to use a UIScrollView and tell the keyboard to scroll when the user selects the field. This is especially important in iOS 8, which introduces custom keyboards; because third party keyboards can be any height, you can no longer hardcode the default keyboard height to scroll to.
Apple describes how to use this approach under "Moving Content That Is Located Under the Keyboard" in their "Text Programming Guide for iOS."

The Correct Way to do Custom Keyboards in iOS?

I am looking to implement a custom toolbar that sits above my keyboard for a text field with some custom values. I've found a ton of tutorials online but this question is for asking what's the best way to do this.
This tutorial here http://blog.carbonfive.com/2012/03/12/customizing-the-ios-keyboard/ provides the most common way I can see across many tutorials, with creating a new subclass of UIView and using delegates to get that information across.
That's the commonality. However, I came across this tutorial which in the view controller itself just creates the toolbar, assigns it to the textField inputAccessory and it's good to go. In fact, I tried out the code and without any effort, I have now a custom keyboard.
http://easyplace.wordpress.com/2013/03/29/adding-custom-buttons-to-ios-keyboard/
This just seems a bit too easy to me though and I'd think the proper, Apple recommended way would be to create that UIView subclass and use delegates so that the view controller with the text fields acts as that delegate.
I'm specifically targeting iOS 7 in my app.
What are people's thoughts on this? If the second easier link is supported and is likely to pass Apple's guidelines, it's a good starting point but if delegates are the way to go, I'd rather look into that from the start.
Your thoughts will be appreciated.
There is no 'Apple Approved' way to do this, and its hard to believe anything you do here would get your app rejected. The custom keyboard you reference in your post has the iOS6 look and will appear outdated in an iOS6 app. I'll mention some iOS7 suggestions shortly, but the constant danger of mimicking what the System looks like today is guaranteed to look outdated later. In Mac/Cocoa development, Apple use to say at the WWDC that if you did something custom, make it look custom, don't take a standard Apple widget and try to duplicate it. But that advice is mostly ignored.
For iOS 7, you can create buttons that appear just like the system ones do (not pressed), but of course when someone presses them, they won't act like system buttons (i.e. animate up and "balloon" out.
I'm currently using a fantastic add-on keyboard, my fork of KOKeyboard (which uses the buttons above). This is such a cool addition. While the buttons look like iPad buttons, each one has 5 keys in it. By dragging to a corner you select one of the four, and tapping in the middle gives you that key. This might be overkill for your app, but it really helped me with mine. It looks like this:
(the Key / Value is in the under laying view.) The center control lets you move the cursor - its like a joy stick - and can be used to both move and select text. Amazing class, I wish I'd invented it!
Also, for any solution, you want to use a UIToolbar as the view holding the keys, for the reason that it supports blur of the view it overlays, just like the keyboard does. You can use the UIToolbar with no bar button items in it (if you want), and just add subviews. This is a "trick" I learned here, as there is no other way to get blur!
David's KOKeyboard (er…, the one he used - see David's comment below) looks nice. I suspect that he is using the official Apple mechanism:
inputAccessoryView
Typically, you'd set that value on a UITextView, but it can be any class that allows itself to become the first responder.
The provided view will be placed above the default apple keyboard.
It is correct that there is no official mechanism (and it is suggested against) to modify any system provided keyboard. You can add to it, as above. You can also entirely replace it for with your own mechanism. Apply will forgo the keyboard setting on your view and use a custom input mechanism if you set
inputView
set it to any view - Apple will still manage its appearance and dismissal as it does the custom keyboards.
Edit: Of course, iOS 8.x added significant access to keyboards. (not mentioned here)

Resources