首页
学习
活动
专区
工具
TVP
发布

c#开发者

专栏作者
256
文章
302865
阅读量
48
订阅数
IOS5开发-http get/post调用mvc4 webapi互操作(图片上传)
目前最流行的跨平台交互是采用http协议通过JSON对象进行互操作。这种方式最简单,也很高效。webservice+xml的方式似乎已经过时。 下面是我做的一个例子 webapi的代码 View Code public IEnumerable<Product> GetAllProducts()         {             Console.WriteLine(DateTime.Now.ToLongTimeString() + " : receive request.");          
阿新
2018-04-12
1.1K0
Convert an object into Json using SBJson or other JSON library
Using SBJson, to convert a object to JSON string, you have to override the proxyForJson method. Like the following, The .h file, @interface MyCustomObject : NSObject {     NSString *receiverFirstName;     NSString *receiverMiddleInitial;     NSString *rece
阿新
2018-04-12
6100
一种自动的将自定义类序列化为JSON的方法
最近因为项目需求,需要将一些自定义的类序列化为JSON,网上有很多好用的第三方序列化工具,但都只能自动序列化一些基本类型,如NSNumber,NSString与NSDictionary这种,没有一种第三方工具提供直接将自定义类序列化的方法(至少据我所知:),而对于这种序列化自定义的类的需求,网上能查到的方法只有将自定义的类手动的转存为一个NSDictionary,然后再使用第三方工具来序列化。例如对于一个类Foo,有如下定义: @interface Foo : NSObject {   NSStri
阿新
2018-04-12
1K0
Iphone 视图跳转方法总结
1.AddInfo *control = [[AddInfo alloc] init];   [self presentModalViewController:control animated:YES];   [control release];   描述:通过事件进行跳转   [self dismissModalViewControllerAnimated:YES];   描述:通过事件进行返回。   2.[self.navigationController pushViewController:subT
阿新
2018-04-12
6260
xcode uiscrollview with paging and zoom
Here is a simple and sample code that demonstrate the photo slide function with zoom using uiscrollview.  image.png this is the first photo  image.png sliding image.png zooming in particular photo  1. first drag three photos to your project , size no
阿新
2018-04-12
1.1K0
Infinite Scrolling in UIScrollView
- (void)viewDidLoad {     [super viewDidLoad];          [theScrollView setContentSize:CGSizeMake(3 * theScrollView.bounds.size.width, theScrollView.bounds.size.height)];     [theScrollView setPagingEnabled:YES];          CGRect aFrame = theScrollView.bound
阿新
2018-04-12
5060
IOS5开发-控件位置适应屏幕旋转代码
- (void)willRotateToInterfaceOrientation:(UIInterfaceOrientation)toOrientation                                  duration:(NSTimeInterval)duration {     if (toOrientation == UIInterfaceOrientationLandscapeLeft ||         toOrientation == UIInterfaceOrientat
阿新
2018-04-12
1.4K0
ios5开发-UITableView开启编辑功能
该例子添加UITableView编辑功能 具体功能如下 功能很简单但很实用  @implementation AppDelegate @synthesize window = _window; @s
阿新
2018-04-12
7760
没有更多了
社区活动
腾讯技术创作狂欢月
“码”上创作 21 天,分 10000 元奖品池!
Python精品学习库
代码在线跑,知识轻松学
博客搬家 | 分享价值百万资源包
自行/邀约他人一键搬运博客,速成社区影响力并领取好礼
技术创作特训营·精选知识专栏
往期视频·千货材料·成员作品 最新动态
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档