zoukankan      html  css  js  c++  java
  • 拉伸,

        UIImage* image = [[UIImageimageNamed:@"conversation_field_bg.png"] stretchableImageWithLeftCapWidth:14topCapHeight:14];

            [self.bgButtonsetBackgroundImage:[[UIImageimageNamed:@"conversation_bg.png"] stretchableImageWithLeftCapWidth:22topCapHeight:30] forState:UIControlStateNormal];

     

     

    - (void)textViewDidChange:(UITextView *)textView

    {

        

        CGSize contentSize = textView.contentSize;

        CGRect inputViewRectOrigin = self.inputView.frame;

        if (contentSize.height > 80) {

            contentSize.height = 80;

            self.sendTextView.scrollEnabled = YES;

        }

        else {

            self.sendTextView.scrollEnabled = NO;

        }

     

        

        self.inputView.frame = CGRectMake(inputViewRectOrigin.origin.x, inputViewRectOrigin.origin.y + inputViewRectOrigin.size.height - contentSize.height, inputViewRectOrigin.size.width,contentSize.height);

        self.sendButton.frame = CGRectMake(self.sendButton.frame.origin.x,

                                           self.inputView.frame.size.height -

                                           self.sendButton.frame.size.height,

                                           self.sendButton.frame.size.width,

                                           self.sendButton.frame.size.height);

        self.inputBGImageView.frame = CGRectMake(inputBGImageViewFrame.origin.x, inputBGImageViewFrame.origin.y, inputBGImageViewFrame.size.width,contentSize.height);

        self.sendTextView.frame = CGRectMake(inputTextView.origin.x, inputTextView.origin.y, inputTextView.size.width, contentSize.height );

      

        self.inputView.backgroundColor = [UIColorredColor];

        self.resignButton.frame = CGRectMake(0, 0, 320,inputViewRectOrigin.origin.y);

        

    }

  • 相关阅读:
    js字符串转数组,转对象方法
    react执行yarn eject后配置antd的按需加载
    DOM对象与jquery对象区别
    vscode使用git管理代码
    使用vscode编辑器编辑CPU100%使用率问题
    Java 多态
    1,随机生成一个500m的txt,填充内容为小写的26个字母。生成后,查找abc字符,打印出其数量和位置(越快越好)
    bat 文件
    word2Html
    生成压缩文件
  • 原文地址:https://www.cnblogs.com/guligei/p/3242670.html
Copyright © 2011-2022 走看看