小编pau*_*991的帖子

目标C解析XML

我有这样的xml ......

    <object>
<list name="subscriptions">
<object>
<string name="id">feed/http://feeds.feedburner.com/computerdefense</string>
<string name="title">.:Computer Defense:.</string>
<list name="categories">
<object>
<string name="id">user/14761688561595773457/label/Hacking</string>
<string name="label">Hacking</string>
</object>
</list>
<string name="sortid">7372F971</string>
<number name="firstitemmsec">1240520939961</number>
<string name="htmlUrl">http://www.computerdefense.org</string>
</object>
<object>
<string name="id">feed/http://www.rawseo.com/news/feed/</string>
<string name="title">A blend of programming and seo</string>
<list name="categories">
<object>
<string name="id">user/14761688561595773457/label/Hacking</string>
<string name="label">Hacking</string>
</object>
</list>
<string name="sortid">D6766911</string>
<number name="firstitemmsec">1258495136927</number>
<string name="htmlUrl">http://www.rawseo.com/news</string>
</object>
<object>
<string name="id">feed/http://it-adsense.blogspot.com/atom.xml</string>
<string name="title">AdSense Blog-Italiano</string>
<list name="categories">
<object>
<string name="id">
user/14761688561595773457/label/Seo e Web Marketing
</string>
<string name="label">Seo e Web Marketing</string>
</object>
</list>
<string name="sortid">9FB570ED</string>
<number name="firstitemmsec">1233684720758</number> …
Run Code Online (Sandbox Code Playgroud)

iphone parsing objective-c xml-parsing

5
推荐指数
1
解决办法
3万
查看次数

NSMutableArray删除重复的项目

 NSLog(@"Ci sono %d categorie",category.count);
 for(int c=0; c<category.count; c++){
 CategoryArray * element =[category objectAtIndex:c];
 NSLog(@"******************************");
 NSLog(@"Titolo %@",element.label);
 NSLog(@"Source %@",element.url);
 NSLog(@"******************************");
 [element release];
Run Code Online (Sandbox Code Playgroud)

这是我的代码!我需要删除所有重复数组...我使用此代码,但我不明白为什么它不起作用.

uniquearray = [[NSSet setWithArray:category] allObjects];
Run Code Online (Sandbox Code Playgroud)

iphone objective-c nsmutablearray

2
推荐指数
1
解决办法
7606
查看次数

在iOS中以编程方式进行自动调用

是否可以使用某些系统API调用iphone sdk中的预定数字?

iphone objective-c ios

0
推荐指数
1
解决办法
527
查看次数

UITableView在每个单元格的右侧创建徽章

例

我想创建一个像这样的表视图,右边有一个徽章.有人可以建议我怎样才能得到这个结果?谢谢

iphone objective-c uitableview

0
推荐指数
1
解决办法
3347
查看次数