//URLエンコードされた文字のデコード

//decoding
NSString *decodedMessage = (NSString *) CFURLCreateStringByReplacingPercentEscapesUsingEncoding(NULL,(CFStringRef) [detailDict objectForKey:@"message"],CFSTR(""),kCFStringEncodingUTF8);
//Dictionaryの中身をログに出す
NSLog(@"detailDict:%@",detailDict);

//結果ーーーーーーー

2011-06-27 15:07:18.157 girlsPicTest[1108:207] detailDict:{
createdate = 1308985381000;
id = 4;
likedvotes = 9;
message = "%E7%B8%81%E7%B5%90%E3%81%B3%E3%83%AA%E3%83%9C%E3%83%B3%EF%BC%86HAPPY%E3%82%B9%E3%83%9E%E3%82%A4%E3%83%AB%E3%81%A1%E3%82%83%E3%82%93";
totallikedvotes = 61;
twitterid = chiboshi1011;
twitternickname = "%E3%83%8A%E3%82%AB%E3%83%A6";
twitterthumbnailurl = "http://a0.twimg.com/sticky/default_profile_images/default_profile_5_normal.png";
userid = 10509648;
}


//Dictionaryの値が数値でなぜか落ちるときの回避
vote.text = [NSString stringWithFormat:@"%@",[detailDict objectForKey:@"likedvotes"]];

文字列の中から特定の文字だけ抜き出したいドキドキ


String str = ”【ここだけほしいの】こっからはいらないの”;

int n = str.indexOf('】');


str = str.substring(0,n+1);


 strの中には、”【ここだけほしいの】” が入ってくるよんビックリマーク

ドキドキ数値型に変換したいときドキドキ


1Integer 型の変数を作る


 #set ( $intConv = 1 )


2$intConv のメソッドで文字列を数値に変換


 #set ( $bbb = $intConv.parseInt( $aaa ) )


ビックリマークこれで$bbbは数値になってるので計算もできるビックリマーク