https://github.com/zytc2009/BigTeam_learning
分类: 嵌入式
2012-10-19 10:20:11
首先下载xmppframework这个框架,
点ZIP下载
接下来,用Xcode新建一个工程
将以下这些文件拖入新建工程中
我们不需要整合facebook,所以文件夹下的facebook相关的可以去掉
Now let’s add the frameworks needed. We select the project in the navigator, then we select the target and we open “Link Binary With Libraries” as shown in the figure.
We have to add lots of framework as shown in the following figure:
Finally, to compile a project we have to tweak some build settings. Changes have to be added to both the project and the target. First, we find the “Header Search Paths” and we specify the library needed to parse xml: ‘/usr/include/libxml2′
Then we select “Other Linker Flags” and the add the following flag: “-lxml2″.
到这里我们就全部设好了,跑一下试试,看有没有错呢
如果没有错的话,我们的xmppframework就加入成功了。
我们设置我们的页面如下图:
我们的KKViewController.h
KKViewController.m
接下来是登录的页面
KKLoginController.m
这里着重的还是UITableView
KKChatController.m