我有一个文本的椭圆路径.对于填充路径,我使用了NSMutableAttributedString:
UIFont *font = [UIFont fontWithName:@"font name" size:15];
NSMutableParagraphStyle *mutParaStyle=[[NSMutableParagraphStyle alloc] init];
[mutParaStyle setAlignment:NSTextAlignmentCenter];
[mutParaStyle setLineBreakMode:NSLineBreakByWordWrapping];
NSDictionary *attrsDictionary = [NSDictionary dictionaryWithObjectsAndKeys:font
,NSFontAttributeName,mutParaStyle ,NSParagraphStyleAttributeName,nil];
NSMutableAttributedString *strText = [[NSMutableAttributedString alloc] initWithString:text attributes:attrsDictionary];
Run Code Online (Sandbox Code Playgroud)
但这只适用于水平文本对齐.我如何应用垂直对齐?
我有这个结果:

但我需要这个:

假设我有几个地址.我需要获取循环中每个地址的坐标.但是获取一个地址的坐标需要一些时间.如何在一个循环中异步获取坐标?