There appears to be a serious issue in iOS 26.4 regarding text alignment.
All text strings are rendered right-aligned instead of left-aligned, even when explicitly setting the paragraph style to NSTextAlignmentLeft.
This behavior is unexpected and seems to indicate a regression in text rendering.
Could you please confirm whether this is a known issue in iOS 26.4?
I am using the following code in a central function that has been working reliably for years across all my apps.
Best regards,
Rolf
Code:
NSMutableParagraphStyle* paragraphLeft = [[NSMutableParagraphStyle alloc] init];
if (paragraphLeft != nil) {
paragraphLeft.alignment = NSTextAlignmentLeft;
NSDictionary *settings = @{
NSFontAttributeName : font,
NSForegroundColorAttributeName : fontclr,
NSParagraphStyleAttributeName : paragraphLeft
};
[theString drawAtPoint:CGPointMake(x, y - font.ascender) withAttributes:settings];
[paragraphLeft release];
}
Topic:
UI Frameworks
SubTopic:
UIKit
4
0
334