摘要: ProblemYou want to specify collision boundaries between your UI components on the screen so that they will not overlap one another.SolutionInstantiate... 阅读全文
posted @ 2014-06-03 20:29 秋怀瑾 阅读(206) 评论(0) 推荐(0) 编辑
摘要: ProblemYou want your UI components to have gravity, so that if they are dragged up to the top of the screen, they will descend on their own. Combining... 阅读全文
posted @ 2014-05-31 20:40 秋怀瑾 阅读(136) 评论(0) 推荐(0) 编辑
摘要: ProblemYou want to point out a specific location on a map to the user.SolutionUse built-in map view annotations. Follow these steps:1. Create a new cl... 阅读全文
posted @ 2014-05-30 15:30 秋怀瑾 阅读(157) 评论(0) 推荐(0) 编辑
摘要: ProblemYou want to find the latitude and longitude of a device.SolutionUse the CLLocationManager class:#import "WSYViewController.h"#import @interface... 阅读全文
posted @ 2014-05-30 11:17 秋怀瑾 阅读(147) 评论(0) 推荐(0) 编辑
摘要: ProblemYou want to allow the users of your app to select from a list of values.SolutionUse the UIPickerView class.DiscussionA picker view is a graphic... 阅读全文
posted @ 2014-05-29 19:53 秋怀瑾 阅读(160) 评论(0) 推荐(0) 编辑
摘要: ProblemYou want to instantiate and display a map on a viewSolutionCreate an instance of the MKMapView class and add it to a view or assign it as a sub... 阅读全文
posted @ 2014-05-29 19:28 秋怀瑾 阅读(154) 评论(0) 推荐(0) 编辑
摘要: HTTP HEAD 生成方法NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:url cachePolicy:0 timeoutInterval:kTimeout];request.HTTPMethod = @"HE... 阅读全文
posted @ 2014-04-29 22:10 秋怀瑾 阅读(716) 评论(0) 推荐(0) 编辑