Custom keyboard with emoji (like kimoji)? - ios

I was wondering how the KIMOJI works?
I read everywhere that you can only create custom keyboards which insert text, not custom emoji.
Any ideas?

I actually had been wondering how to create a custom keyboard extension inspired by KIMOJI for stickers and just finished writing a response here: Add Stickers in Custom KeyBoard Extension
The only modification I would suggest is that instead of using UIViews to hold a few buttons, you may want to try holding many stickers in a UICollectionView. The KIMOJI app allows you to scroll horizontally through the stickers/emoji and a UICollectionView would allow you that functionality.
I hope this helps.

Related

Draggable UIButtons like in iOS Camera app

I want to build a similar view as seen in the iOS Camera app, but I don't know which UI-Elements were used.
It can be found in the Instagram Story section as well.
Edit:
It should have the same behavior.
I tried to accomplish this with an UICollectionView. I'm adding UIButtons to the view but I don't know how to make the 'drag & stop' behavior. Maybe there is a delegate method or so.
A small explanation or some ideas would be helpful. I don't need code.
That's a custom control. You could create it using a horizontal scroll view containing multiple UILabel objects, each of which has an attached UITapGestureRecognizer.
You might be able to find a third party library that does what you want. Try Cocoa Controls.

Custom UIPicker control IOS

im looking for a similar control to this Android Wheel, its very similar to UIPickerView, but i know that Apple use to reject APPs that modify UIPickerView appearance.
I need a control that let me put images on a infinite loop scroll and let the user drag to select one.
I've found some controls here, but most of them only support strings, some support images and are looped but dont let the user scroll.
My purpose is to make a button scroll loop where you can drag any button to the center of the wheel and see a text description on a uilabel, i dont need the buttons to be clickables.
I hope I explained well, and sorry for my bad english.
I would better suggest you to go with the iCarousel here. This enables you a different mode of scrolling & directions & effects which you can project on a Custom view similar (by Sliding-In & Sliding-Out from the bottom of screen) like a UIPickerView. This is not at all made using extending UIPickerView, but you can project it like that. Once you see a demo app of it, you can eventually change your mind to use this over custom UIPickerView.
Just implement the delegate method declared here to know which of the element was clicked. iCarousel comes with a image loading view also. You can look into that too.
But if you want to stick with UIPickerView customization, then please have a look at this stack Overflow post. This is certainly what you want, except that you need to add button instead of images.

TextField used in iOS message app

I want a text field similar to the stock messaging app in the iPhone. Text field should have the same look and should be expandable to allow multi-line editing. Could you please suggest a method to get this in my app?
Thanks.
Use a UITextField.
To get the height of the text field use -sizeWithFont:constrainedToSize:lineBreakMode:.
To have the look of the Apple's text field put an image behind the text field that looks like Apple's text field. See -resizableImageWithCapInsets: to get the image to stretch properly.
Have a look at this :
UIBubbleTableView
EDIT :
The previous link was for the "bubble styled" tableview. If you want the view where you actually type the message, this is the one :
HPGrowingTextView
For other people who are searching for libraries but the ones mentioned here are with many bugs
Here is a library:
SlackTextViewController
A drop-in UIViewController subclass with a growing text input view and other useful messaging features. Meant to be a replacement for UITableViewController & UICollectionViewController.

Search UITextView for a specific word in iOS app

I have added UITextView to an app and the list is kind of long. What is the easy way of searching a word in this list. I can add a button and textfield to enter and search for a word. I was was wondering maybe there is already built feature for UITextView.
Thanks very much
[TextView.text rangeOfString:]; or something like this.
It sounds like you're asking if there's a search UI built-in for UITextView (like the way the system libraries manage some aspects of the searchDisplayController property on UIViewController). There is not a built-in feature for this.
One convenient option you might consider is creating a 44 pixel tall view with your search text field and button(s) and then set this view as the "inputAccessoryView" on the UITextView object. The system will then manage animating its display above the keyboard, and scrolling the UITextView so the user is not typing underneath this view.

How to save the content of scrollview to photo library in ios

I am new to ios development. I am trying to implement an ios application with UIScrollview.
The purpose of my scroll view is to arrange some images. I need to save the content of the scrollview to photo Library, attach it to email, etc.
Is it posible?
If it is possible, how can I do this?
If any body know please clear my doubt. Thanks in advance.
According to the comments, I understand that you want to save the whole content of a UIScrollView.
Firstly, whenever you use UIScrollView, you always have to set another UIView as its content. That UIView is exactly the whole content of your UIScrollView.
So the question becomes how to save a UIView as an image or attach it into email, well I find a few pages to you which is exactly what you want.
Save UIView's representation to file
http://www.icodeblog.com/2009/07/27/1188/
http://cocoatouch.blog138.fc2.com/blog-entry-57.html

Resources