摘要: //定义一个blocks变int (^myblocks2) (int a, int b) = ^(int a, int b) { int c = a + b; return c; }; //向外暴露一个接口-(void) setBark:( void (^) (Dog *thisDog, int... 阅读全文
posted @ 2014-09-11 18:47 apem 阅读(152) 评论(0) 推荐(0)
摘要: http://www.cnblogs.com/smileEvday/archive/2012/06/28/tableView.htmlUITableView学习笔记 作者:一片枫叶 看TableView的资料其实已经蛮久了,一直想写点... 阅读全文
posted @ 2014-09-11 18:26 apem 阅读(165) 评论(0) 推荐(0)
摘要: iPhone socket 编程之BSD Socket篇 收藏在进行iPhone网络通讯程序的开发中,不可避免的要利用Socket套接字。iPhone提供了Socket网络编程的接口CFSocket,不过笔者更喜欢使用BSD Socket。(IBAction)calculaeTip:(id)send... 阅读全文
posted @ 2014-09-11 17:32 apem 阅读(237) 评论(0) 推荐(0)
摘要: http://blog.sina.com.cn/s/blog_7a2f0a830101ecv4.htmlclinetSocket 1、viewcontroller.h@interface ViewController : UIViewControllerGCDAsyncSocketDelegate,... 阅读全文
posted @ 2014-09-11 16:42 apem 阅读(1072) 评论(0) 推荐(0)