قالب وردپرس درنا توس
Home / IOS Development / How to create a static, dynamic, static, dynamic text display layout? : iOSProgramming

How to create a static, dynamic, static, dynamic text display layout? : iOSProgramming



I have a TableView and in each TableViewCell I use two lines of text, each line has four labels

1 -> | STATIC | DYNAMIC | STATIC | DYNAMIC |

2 -> | STATIC | DYNAMIC | STATIC | DYNAMIC |

I have to set the boundary between inner dynamic and static texts as dynamic text can be longer and can push the latter labels to leave the view, how can I set a width that works on all screens and also does not push when it gets longer , it should be cut at one point.

At the moment I have set the latest dynamic text to fixed and dynamic leading size, so it should also push the static text before it makes room.

Using Storyboarding and Swift, very new to iOS


Source link