凌动小生的Blog

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2013年9月5日

摘要: http://www.raywenderlich.com/10518/how-to-use-uiscrollview-to-scroll-and-zoom-contentGetting StartedFire up Xcode and create a new project with the iOS\Application\Single View Application template. EnterScrollViewsfor the product name, enter the company identifier you used when creating your App ID, 阅读全文
posted @ 2013-09-05 15:44 凌动小生 阅读(590) 评论(0) 推荐(0) 编辑

摘要: Create the Project and Design the InterfaceFirst, create a new Xcode project using the Single View Template. Let’s name the project as “MyLocationDemo” and set the project with the following parameters:MyLocationDemo Xcode ProjectOnce you’ve successfully created your project, go to the Storyboard an 阅读全文
posted @ 2013-09-05 09:26 凌动小生 阅读(419) 评论(0) 推荐(0) 编辑

2013年9月4日

摘要: The iPhone Core Data Example ApplicationThe application developed in this chapter will take the form of the same contact database application used in previous chapters, the objective being to allow the user to enter name, address and phone number information into a database and then search for speci 阅读全文
posted @ 2013-09-04 16:45 凌动小生 阅读(335) 评论(0) 推荐(0) 编辑

摘要: How To Delete a Row from UITableViewI hope you have a better understanding about Model-View-Controller. Now let’s move onto the coding part and see how we can delete a row from UITableView. To make thing simple, I’ll use the plain version of Simple Table app as an example.If you thoroughly understan 阅读全文
posted @ 2013-09-04 16:36 凌动小生 阅读(407) 评论(0) 推荐(0) 编辑

摘要: Assigning View Controller ClassIn the first tutorial, we simply create a view controller that serves as the detail view of recipe in the Storyboard editor. The view controller is assigned with the UIViewController class by default.Default View Controller - UIViewControllerLet’s revisit our problem. 阅读全文
posted @ 2013-09-04 16:28 凌动小生 阅读(327) 评论(0) 推荐(0) 编辑

摘要: http://www.appcoda.com/use-storyboards-to-build-navigation-controller-and-table-view/Creating Navigation Controller in StoryboardsNow let’s get our hands dirty and create our own Storyboards. In this tutorial, we’ll build a simple app that makes use of both UITableView and UINavigationController. We 阅读全文
posted @ 2013-09-04 16:24 凌动小生 阅读(431) 评论(0) 推荐(0) 编辑

2013年8月30日

摘要: What is Core Data?If you want to build anything beyond the most simplistic apps for iOS, you’ll need a way to persist data. Luckily, Apple provides the Core Data framework, a persistence layer that efficiently handles the coordination of saving/updating/deleting data, as well as maintaining data int 阅读全文
posted @ 2013-08-30 10:36 凌动小生 阅读(215) 评论(0) 推荐(0) 编辑

2013年8月29日

摘要: Objective-C最基础语法之Class定义:http://mobile.51cto.com/iphone-281925.htmTable View:http://www.appcoda.com/use-storyboards-to-build-navigation-controller-and-table-view/http://www.appcoda.com/ios-programming-customize-uitableview-storyboard/http://www.appcoda.com/storyboards-ios-tutorial-pass-data-between- 阅读全文
posted @ 2013-08-29 16:03 凌动小生 阅读(287) 评论(0) 推荐(0) 编辑

2013年6月1日

摘要: 1.集合的投影(过滤)有以下三种方式:a.“?#”:投影(过滤)所有符合条件的集合,如:users.{?#this.age > 19};b.“^#”:投影(过滤)第一个符合条件的元素,如:users.{^#this.age > 19};c.“$#”:投影(过滤)最后一个符合条件的元素,如:users.{$#this.age > 19} 。2.“this”表示集合中的元素;3.投影(过滤)操作返回的是一个集合,可以使用索引取得集合中指定的元素,如:users.{?#this.age > 19}[0]。 阅读全文
posted @ 2013-06-01 10:12 凌动小生 阅读(177) 评论(0) 推荐(0) 编辑

2013年5月28日

摘要: BEGIN TRANSACTIONBEGIN TRY --Run your Statements COMMIT TRANSACTIONEND TRYBEGIN CATCH ROLLBACK TRANSACTION DECLARE @Msg NVARCHAR(MAX) SELECT @Msg=ERROR_MESSAGE() RAISERROR('Error Occured: %s', 20, 101,@msg) WITH LOGEND CATCH 阅读全文
posted @ 2013-05-28 19:54 凌动小生 阅读(201) 评论(0) 推荐(0) 编辑