I am using Oxygene 7.1.76.1545 with VS 2012
My iOS application crash on simulator when i use implicit Sugar.String type conversion from Char.
Problem example:
method RootViewController.tabBar(aTabBar: UITabBar) didSelectItem(aItem: UITabBarItem);
var
Texto: String;
begin
NSLog('tabbar:%@ didSelectItem:%@', aTabBar, aItem);
fSelectedTab := aItem;
Texto := 'Selected tab ' + tabBar.items.indexOfObject(aItem);
Texto := Texto + Texto[0];
label.text := Texto;
button.hidden := false;
end;
Workaround Example:
method RootViewController.tabBar(aTabBar: UITabBar) didSelectItem(aItem: UITabBarItem);
var
Texto: String;
begin
NSLog('tabbar:%@ didSelectItem:%@', aTabBar, aItem);
fSelectedTab := aItem;
Texto := 'Selected tab ' + tabBar.items.indexOfObject(aItem);
Texto := Texto + Texto.Substring(0, 1);
label.text := Texto;
button.hidden := false;
end;
Here is a project example file:
TabBar.zip (2.2 MB)
and crash report:
TabBar_2014-06-28-175230_Mac-Marta.zip (10.0 KB)