module merge util module naming changed to use "-"

This commit is contained in:
Vladimir Enchev
2014-05-15 10:00:17 +03:00
parent 4b14fd1a19
commit 012a4c40be
7 changed files with 56 additions and 3 deletions

22
utils/utils.ios.ts Normal file
View File

@ -0,0 +1,22 @@
export class Collections {
public static jsArrayToNSArray(str: string[]): any {
var arr = new Foundation.NSMutableArray();
if ("undefined" != typeof str) {
for (var element in str) {
arr.addObject(str[element]);
}
}
return arr;
}
public static nsArrayToJSArray(a: any): string[] {
var arr = [];
if ("undefined" != typeof a) {
for (var i = 0; i < a.count(); i++) {
arr.push(a.objectAtIndex(i));
}
}
return arr;
}
}