Git Product home page Git Product logo

agemojikeyboard's Introduction

AGEmojiKeyboard

Version License Platform

An alternate keyboard for iOS that lets you display all the emojis supported by iOS. Documentation is available via CocoaDocs.

Additions that need to be done:

  1. Stickers
  2. Custom emojis (different font)

Example Project

To run the example project:

  1. Clone the repo to a local folder.
  2. Run pod install from the Example directory.
  3. Open AGEmojiKeyboardSample.xcworkspace placed in Example folder.
  4. Run.

Example Preview

Installation

Via CocoaPods

AGEmojiKeyboard is available through CocoaPods, to install it simply add the following line to your Podfile:

pod "AGEmojiKeyboard"

Copy the files

Copy the classes from AGEmojiKeyboard/ and resources from Resources/ to your project. Look at the Example/ folder to see how the classes are used for more detail.

Usage

  1. Use your own ViewController (optionally) to conform to AGEmojiKeyboardViewDataSource and AGEmojiKeyboardViewDelegate protocol.
  2. Create an instance of [AGEmojiKeyboardView][AGEmojiKeyboardView] and set it as your textView's inputView.
  CGRect keyboardRect = CGRectMake(0, 0, self.view.frame.size.width, 216);
  AGEmojiKeyboardView *emojiKeyboardView = [[AGEmojiKeyboardView alloc] initWithFrame:keyboardRect
                                                                           dataSource:self];
  emojiKeyboardView.autoresizingMask = UIViewAutoresizingFlexibleHeight;
  emojiKeyboardView.delegate = self;
  self.textView.inputView = emojiKeyboardView;

Author

Ayush Goel, [email protected]

License

AGEmojiKeyboard is available under the MIT license. See the LICENSE file for more info.

agemojikeyboard's People

Contributors

ayushgoel avatar readmecritic 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

agemojikeyboard's Issues

Sample project question

In the sample project the keyboard does not seem to be actually inputting the text. Nothing appears in the text view after pressing a few emoji buttons. Is this expected behavior? I'm using the simulator, xcode 5.0.

Empty emoji board

First of all, great library!

I implemented the emoji board like this

        let emojiKeyboard = AGEmojiKeyboardView(frame: CGRectMake(0, 0, self.view.frame.size.width, 216), dataSource: self)
        emojiKeyboard.delegate = self
        emojiKeyboard.autoresizingMask = .FlexibleHeight;
        createView.nameField.inputView = emojiKeyboard

But it's empty when I display it.

for all the data source stuff, I used empty images, like this:

    func emojiKeyboardView(emojiKeyboardView: AGEmojiKeyboardView!, imageForSelectedCategory category: AGEmojiKeyboardViewCategoryImage) -> UIImage! {
        return UIImage()
    }

What am I doing wrong? Hope you can help.
screen shot 2015-11-05 at 12 07 18

Tip on how to add a sticker view

Hi Ayush,

I was wondering can you give me some tips on how I can go about adding stickers to your pod? Thank you. This is a great project!

George

Update README

Enhance installation instructions including installation for EmojisList.plist.

Memory Usage

Hi,

Tapping on each segment increases the app memory usage. Also, scrolling through pages increases the memory usage and this memory is never released. You could reach to about 40 MB which leads to crash on a real device. I've tested the example on an iPad Air and it crashes when I scroll on some pages.
Is there a way to fix this? I can't find the leak. The instruments shows allocations related to CFString etc.

Three more features

Hi,

This is a great project. I really appreciate.
I just want to ask you for some little things. I worked on them a lot but many unexpected issues arise.

  1. The ability to remove the pageControl dots.
  2. The ability to move the segmented control to the bottom of the keyboard.
  3. The ability to remove the backspace from each page and move it besides the segmented control since I want to turn pagingEnabled off. (a la iOS 8.3 emoji keyboard)
  4. The ability to move between each segment by scrolling. I mean when each category ends, I can continue swiping to next category. (a la Notification Center in iOS)

I hope you could help me with at least item 1 to item 3.

Best regards,
Saeed Taheri

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.