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);

        

    }

  • 相关阅读:
    Linux用户管理
    chattr&lsattr
    repo 回退当前分支下所有仓库到指定日期前的最新代码版本
    grep
    awk
    vscode sftp插件的使用
    程序的链接
    ZJOI2015 诸神眷顾的幻想乡
    BZOJ3756 Pty的字符串
    HDU1506 Largest Rectangle in a Histogram
  • 原文地址:https://www.cnblogs.com/guligei/p/3242670.html
Copyright © 2011-2022 走看看