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

        

    }

  • 相关阅读:
    jemter 90%line的解释
    JMeter 不同线程组间变量传递(亲测 ok)
    nginx的url规则小tips
    redis水平扩展实践,完全配置,无需代码改动
    基于nginx + lua实现的反向代理动态更新
    基于redis 3.x搭建集群环境
    简单监控脚本细节分析
    简单的应用服务器性能监控
    Elasticsearch的脚本化数据导入导出
    A* search算法
  • 原文地址:https://www.cnblogs.com/guligei/p/3242670.html
Copyright © 2011-2022 走看看