The rendering of the chat interface is as follows: In the chat interface below, three types of cells are used, one for displaying text and expressions, one for displaying recordings, and one for displaying pictures. When the picture is clicked, it will jump to another Controller to display the picture. A pinch gesture is added to the picture display page. Clicking the play button will play the recorded audio. The height of the cell will be adjusted according to the content, and the height of the textView in the cell is set through constraints. 1. Define the cell we want to use. The code is as follows: 1. The cell that displays expressions and text. The code is as follows. We need to find the bound based on NSMutableAttributedString, then change the constraint values of the width of the ImageView and TextView on the cell, and dynamically adjust the bubbles. Size, the specific code is as follows: #import "TextCell.h" @interface TextCell() @property (s
1. WeChat chat page implementation for iOS development
Introduction: The rendering of the chat interface is as follows: In Three types of cells are used in the chat interface below, one is for displaying text and expressions, one is for displaying recordings, and the other is for displaying pictures. When the picture is clicked, it will jump to another Controller to display the picture. Display, a pinch gesture is added to the image display page. Clicking the play button will play the recorded audio. The size of the cell will be adjusted according to the content, and the height of the textView in the cell is set through constraints ##.
#2. Basic knowledge of CSS3 grid layout
Introduction: CSS3 grid layout Basic knowledge
3. How to use Java layout manager_MySQL
Introduction: Many beginners are using Java When the layouter automatically lays out the interface, we often encounter problems such as not knowing how to define the area size or the distance between buttons. I wrote an article "How to implement various components in JAVA manual layout to change with the window", and some readers. Reflecting on the difficulty in calculating coordinates, I asked if the layout in the article can be used to implement the interface. In fact, automatic layout can also solve the definition area
##4.Angular implements form automatic layout_ AngularJS
Introduction: This article mainly introduces the relevant information about Angular's implementation of form automatic layout, and analyzes the implementation method of Angular's implementation of form automatic layout in the form of code snippets. Interested friends can refer to[Related Q&A recommendations]:
ios - Using Masonry to report NSInternalInconsistencyException errorjavascript - Automatic layout of relationship diagram xcode - How to add an automatic layout interface in the middle of the iOS non-automatic layout interface? ios - iphone After using Masonry, how to check whether my Autolayout layout is correct?
##ios - How to use the topLayoutGuide of viewController in masory?
The above is the detailed content of Recommended articles about automatic layout. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

EditPlus Chinese cracked version
Small size, syntax highlighting, does not support code prompt function

VSCode Windows 64-bit Download
A free and powerful IDE editor launched by Microsoft

Dreamweaver Mac version
Visual web development tools

MinGW - Minimalist GNU for Windows
This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

PhpStorm Mac version
The latest (2018.2.1) professional PHP integrated development tool