خرید بک لینک

Vote count: 0

This is My string i like to split it using special character "-"

hi - नमस्ते
Hindi - हिन्दी
Telugu - तेलुगु
how - कैसे
are - हैं
you - आप
go - जाना
going - जा रहा
translate - अनुवाद करना
good - अच्छा

What i was tried :

[strFileContent enumerateSubstringsInRange:NSMakeRange(0, strFileContent.length)
                                               options:NSStringEnumerationByWords
                                            usingBlock:
             ^(NSString *substring, NSRange substringRange, NSRange enclosingRange, BOOL *stop) {
                 checking=substring;
                 NSLog(@"this is my splitting values =%@",substring);

             }];

If i did above method each word getting separately so that continues words getting brakes for eg translate - अनुवाद करना this word getting brakes .

2)[arrcheck addObject:[strFileContent componentsSeparatedByString:@"-"]];

if i did 2 method then n getting added

"Tamil ",
        " U0924U093eU092eU093fU0932
nhi ",
        " U0928U092eU0938U094dU0924U0947
nHindi ",
        " U0939U093fU0928U094dU0926U0940
nTelugu ",
        " U0924U0947U0932U0941U0917U0941
nhow ",
        " U0915U0948U0938U0947
nare ",
        " U0939U0948U0902
nyou ",
        " U0906U092a
ngo ",
        " U091cU093eU0928U093e
ngoing ",
        " U091cU093e U0930U0939U093e
ntranslate ",
        " U0905U0928U0941U0935U093eU0926 U0915U0930U0928U093e

What is the exact way to get values separately.

asked 2 mins ago

برچسب: نویسنده: استخدام کار تاريخ: پنجشنبه 26 فروردين 1395 ساعت: 14:25

صفحه بندی