[ios] auto layout programatically

* first :

willBeAddedView.translatesAutoresizingMaskIntoConstraints = NO;
[parentView addSubView:willBeAddedView];
[parentView addConstraints:.....define your self];

* Reference http://www.thinkandbuild.it/learn-to-love-auto-layout-programmatically/ https://developer.apple.com/library/ios/documentation/UserExperience/Conceptual/AutolayoutPG/VisualFormatLanguage/VisualFormatLanguage.html#//apple_ref/doc/uid/TP40010853-CH3-SW11

[ios] App crash when you try to render some special text.

Cause

CoreText render issue. Font unable to render special character.

Example

* reference : http://arstechnica.com/security/2015/05/beware-of-the-text-message-that-crashes-iphones/

 

لُلُصّبُلُلصّبُررً ॣ ॣh ॣ ॣ


 

 

Error Log


2015-03-31 17:24:29.893 YourAppName[3456:1360936]
CoreText: *** Unmapped "\U00010B3B" {name = AppleSDGothicNeo-Regular, size = 17.000000, matrix = 0x0, descriptor = {attributes = {type = mutable dict, count = 1,
entries =>
1 : {contents = "NSFontNameAttribute"} = {contents = "AppleSDGothicNeo-Regular"}
}
>}}
2015-03-31 17:24:29.894 YourAppName[3456:1360936]
CoreText: *** Unmapped "\U00010B3B" {name = AppleSDGothicNeo-Regular, size = 17.000000, matrix = 0x0, descriptor = {attributes = {type = mutable dict, count = 1,
entries =>
1 : {contents = "NSFontNameAttribute"} = {contents = "AppleSDGothicNeo-Regular

Similar Sympthoms

http://www.maclife.com/article/news/apple_coretext_rendering_bug_causes_crashes_ios_6_os_x_108

The way to avoid this problem

replace un-renderable text to white box character.