Skip to content
프로젝트

smileyborg/TableViewCellWithAutoLayoutiOS8

GitHub에서 보기

소개

Swift와 Objective-C를 사용해 iOS 8에서 테이블 뷰 셀의 크기가 자동으로 조정되는 방식을 보여주는 샘플 프로젝트입니다.

웹 및 앱 개발

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

TableViewCellWithAutoLayoutiOS8

Note: This sample project requires Xcode 7 and iOS 8. For a sample project demonstrating the iOS 7 compatible implementation, click here.

Sample project demonstrating self-sizing table view cells in iOS 8, using Auto Layout in UITableViewCell to achieve dynamic layouts with variable row heights. This project is a universal app that will run on iPhone and iPad. This implementation is only compatible with iOS 8 and later.

There are two branches in this repository:

  1. master (this branch) - A Swift 2.0 implementation
  2. objective-c - An Objective-C implementation

To build & run the app, you should open the TableViewCellWithAutoLayout.xcworkspace in Xcode.

This sample project displays a table view with cells that each contain a single-line title label and a multi-line body label (each cell's body label displays a random number of lorem ipsum words).

This project utilizes the open source PureLayout library to easily set up constraints in code.

See the original post on Stack Overflow for more info:

http://stackoverflow.com/questions/18746929/using-auto-layout-in-uitableview-for-dynamic-cell-layouts-variable-row-heights

If you have questions or run into issues, please open a new Issue on this GitHub project.

관련 프로젝트 살펴보기

불러오는 중…