zoukankan      html  css  js  c++  java
  • 12.判断输入的是系统表情

       NSString *string = self.textView.text;

        NSInteger strLength = string.length;

        if (strLength)

        {

            for (NSInteger i = 0; i < strLength; i ++)

            {

                if (i < strLength - 1)

                {

                    NSString *tempStr = [string substringWithRange:NSMakeRange(i, 2)];

                    if ([self stringContainsEmoji:tempStr])

                    {

                        self.resultLabel.text = @"结果:输入的字符中含有系统表情";

                        break;

                    }

                    else

                    {

                     self.resultLabel.text = @"结果:输入的字符中不含系统表情";

                    }

                }

            }

        }

  • 相关阅读:
    flash player over linux
    chmod 命令
    A*算法
    adb找不到设备
    ubuntu14.04安装wine以及国际版QQ
    linux man
    X-window
    linux file system
    linux command
    directUI
  • 原文地址:https://www.cnblogs.com/qiangzheVSruozhe/p/6076443.html
Copyright © 2011-2022 走看看