iphone开发中数据存储 属性列表,归档,SQLite3,core data 还有FMDB应该选择哪种?

细粉条 2014-12-08 06:10:14
iphone开发中数据存储有几种:属性列表,归档,SQLite3,core data 还有FMDB
这几种方式分别适合什么情况呢?
现在需要用到数据存储,我应该选择哪种方式呢?刚接触ios,求指导。多谢了。
...全文
305 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
ReyZhang 2014-12-08
  • 打赏
  • 举报
回复
如果是一些简单的key/value的键值对的存储可以用plist , NSUserDefaults 来存储就可以了。 如果你的数据相对复杂,这时候你就需要用到关系型数据库了。如sqlite, 至于core data 本质上还是使用sqlite 来存储数据,它只是sqlite 的ORM 的一种实现 。而FMDB是第三方的为方便操作 sqlite 而封装 的库。
伦敦iOS小牛 2014-12-08
  • 打赏
  • 举报
回复
轻量级的可以直接用UserDefault 数据库级的建议用Core Data + SQLite, CD已经比较成熟了,熟悉以后很好用。 如果要把数据保存到后台,可以看看Parse.com, 相当于CoreData的云运用。
Bannings 2014-12-08
  • 打赏
  • 举报
回复
属性列表,归档,SQLite3,core data 还有FMDB 轻量级的可以用plist和归档,数据量比较大或者需要查询的(如缓存中的数据)就用数据库。 SQLite3、core data、fmdb三者区别不大,主要看你熟悉哪一种,SQLite3原生api使用起来不太方便,fmdb是对它的封装;core data是苹果自己搞的一套数据持久化的解决方案,有一定的学习成本,支持对象关系映射
苹果iOS是由苹果公司开发的手持设备操作系统。苹果公司最早于2007年1月9日的Macworld大会上公布这个系统,最初是设计给iPhone使用的,后来陆续套用到iPod touch、iPad以及Apple TV等苹果产品上。iOS与苹果的Mac OS X操作系统一样,它也是以Darwin为基础的,因此同样属于类Unix的商业操作系统。原本这个系统名为iPhone OS,直到2010年6月7日WWDC大会上宣布改名为iOS。截止至2011年11月,根据Canalys的数据显示,iOS已经占据了全球智能手机系统市场份额的30%,在美国的市场占有率为43%。 源码列表: 按钮类 按钮 Drop Down Control 按钮-Circular Music Player Control 》》Flat Pill Button 按钮类--Fancy Menu 按钮之Custom Gradient Button 按钮之Flat Button 按钮之NIDropDown 按钮之Popup Menu 按钮之UIMenuItem with Image 标签类 标签之Emoji Label 标签之Justifier Label 标签之Top Aligning Label 标签之单一label多颜色多字体 弹出视图 弹出视图 View Bounce Animation 弹出视图(Popup View)UIPopoverListView 弹出视图(Popup View)之URBAlertView 弹出视图(Popup View)之自定义菜单UIMenuBar 弹出视图-Patterned Alert View 弹出视图-Table Alert 弹出视图类--Blur ModalView 弹出视图类--Depth View 弹出视图类--FWTPopover 弹出视图类--icon sheet 弹出视图类--Informatic Toolbar 弹出视图类--WCAlertView 弹出视图之Depth Modal 弹出视图之SelectViewController 导航条 导航条(Navigation Bar)Navigation Menu 导航条(Navigation Bar)之Menu on NavigationBar 导航条类--iOS更换皮肤 导航条之Breadcrumb View 导航条之NavBarNotificationView 导航条之NavigationController Transition 导航条之Title Swipe View 导航条之Title View on NavigationBar 地图类--自定义地图标注 地图(Map)之SJOPaperboy 地图类--Custom Annotation 地图类--DirectionsKit 地图类--Location Indicator 地图类--简单的地图路径 地图类--自定义地图标注 动画类 动画--Spring LoadedView 动画-UIKitForGame 动画类--Guide Arrow 动画之Animation Sequence 动画之Genie Effect 动画之Steam View 分段选择类 分段选择(Segment)之URBSegmentedControl 分段选择类--SVSegmentedControl 扩展 分段选择之AKSegmentedControl 分段选择之Color Bar Segments 滚动视图 滚动的标签 滚动视图(ScrollView)Scroll Grid Controller 滚动视图--Infinite GridView 滚动视图类--CoverFlow 滚动视图类-Lazy ScrollView 滚动视图类--Parallax ScrollView 滚动视图类--Parallax View 滚动视图类-简单的广告栏 滚动视图类--拖动UIScrollView放大图片 滚动视图之Extended UIScrollView 滚动视图之MCPagerView 滚动视图之Page Scrubber Bar 滚动视图之Parallel View 滚动视图之SBFlowView 滚动视图之Wheel Component 汉字转换为拼音 滑竿类 滑杆(Slider)Circular Slider View 滑杆(Slider)之Range Selector 滑杆(Slider)之Volume Bar 滑杆类-Vertical Slider View 滑杆之Slider popover 滑杆之Trim Control 绘图类--My Palette 绘图类--超级简单的画正方形的方法 绘图之Drawing View 基于FMDB数据库操作 简单阅读器 键盘类 键盘(Keyboard)之自定义表情键盘 键盘-FaceBoard 键盘-Keyboard Bar TextField 键盘类》》Number PadView 键盘类》》ZenKeyboard 键盘类--自定义的拨号键盘 键盘之Custom iOS Keyboard 进图条类 进度条(Progress)Circular Progress View 进度条(Progress)之Progress Toolbar 进度条-Colorful ProgressView 进度条类--Range Slider With Progress 进度条之circular timer 进度条之MCProgressView 开关类 开关(Switch)之RESwitch 开关-Simple Switch Demo 开关之Toggle View 开关之TTSwitch 列表类 联系人搜索算法 列表 纵向Table里嵌套横向Table 列表(Table)Cell Flip Segue 列表(Table)之DynamicHeights 列表(Table)之Expansion Table 列表(Table)之Horizontal table 列表(Table)之Pull Up To Refresh 列表(Table)之TableView with SearchBar 列表(Table)之UITable嵌套UITable 列表(Table)之UploadProgressView 列表-Rainbow Styled Pull To Refresh 列表-UITableView背景随动 列表类》》自定义Table View折叠效果 列表类-FormInputAccessoryView 列表类-Grid TableView 列表类-Grouped TableView With Shadows 列表类--iOS 6.0 Pull to Refresh 列表类--Section Selection View 列表类--Styled TableViewCell 列表类--TableView的各种操作 列表类--UIListView 列表类--下拉刷新加载SQLite数据 列表-让TableView的子view保持固定 列表之ExpansionTableView 列表之iOS Tree Component 列表之Refresh Control 列表之首列固定的列表 日历类 日历(Calendar)之Calendar Picker 日历(Calendar)之TimesSquare 日历之CalendarView 日历控件 日历之封装的My97DatePicker日历 社交类 社交分享-SinaWeibo Share 社交分享类》》ios6 Share Demo 社交分享类--Social Share TableViewCell 社交分享之KRShare 社交分享之MessageActivities 社交分享之ShareSDK 视图布局类 视图布局(View Layout)Border View 视图布局(View Layout)之Linear Layout View 视图布局(View Layout)之Quilt Layout 视图布局(View Layout)之模仿ness伸缩效果 视图布局-Animated Grid 视图布局-Note ViewController 视图布局-Side bar demo 视图布局-Sliding Grid View 视图布局类》》Circle Layout 视图布局类-HGPhoto Wall 视图布局类--Scaling For iPad mini 视图布局类--Swipe ViewController 视图布局之Cycled Viewer 视图布局之Dragging Buttons 视图布局之Mosaic UI 视图布局之Rounded View 视图手势切换 视图切换(View Transition)GuideViewController 视图切换类-3D浏览器 视图切换类--zaker应用进入画面效果 视图切换之视图切换大小渐变效果 手势交互--物体根据重力感应运动 手势交互之Drag View 手势交互之Touch Visualizer 图表类 图表--百分比圆环 图表类--Percentage Chart 图表类--极简个税计算器 图表之Rotation Pie Chart 图表之实时更新的曲线图 图像类 图像(Image)Transition ImageView 图像(Image)之Colorized Progress View 图像-AsyncImageView 图像-Blurred Image 图像-iOS Image Editor 图像-NLImageCropper 图像-Scratch View 图像类 -Photo Zoom 图像类》》360 Degree Panorama 图像类--Before After 图像类--Crop Image 图像类--Image Category 图像类--Image Select and Crop 图像类--OLImageView 图像类View With Bordered Image 图像类--图片下载和保存 图像之AmazeKit 图像之Croppable View 图像之ImagePickerController of InstaPDF 图像之ImageView With Preview 图像之Media Focus Manager 图像之Multiple Image Picker 网络类 网络类--Downloader Management 网络类--photo批量上传ftp 网络类--Reachability 网络之Multi Downloader 文字视图类 文字视图(Text)之AutoComplete TextField 文字视图(Text)之Bar Track ball Item 文字视图(Text)之Messages TableViewController 文字视图(Text)之TextView Placeholder 文字视图-HashTag Mention Controller 文字视图-Tweet Label 文字视图类--Digit Input 文字视图类--emoji-converter 文字视图类--Placeholder TextView 文字视图类--Swipe Shift Caret 文字视图之Autocomplete UITextField 文字视图之Clickable Label 文字视图之Hyperlink Label 文字视图之Note View 文字视图之Rich Content Label 相机类 相机-iOSMp4Camera 相机类>>Camera多张拍摄Demo 相机类--flash light 相机之实用手电筒 选项卡类 选项卡之AKTabBarController 选项卡之Arc Tab 选项卡之LSTabs 选择器类 选择器类--PickerView with Search Bar 选择器类--Value Selector 选择器类--Wheel Menu 选择器类--老虎机 选择器之定制多选的PickerView 音频声效类 音频声效 VoiceTTS Demo 音频声效(Audio)之语音识别 音频声效-iOS Mp3 Recorder 音频声效--VoiceTTS Demo 音频声效类--AAC Audio Converter 音频声效类--BobMusic播放器 音频声效类--Groover 音频声效之Hysteria Player 音频声效之Sound Board 游戏引擎类 游戏引擎(cocos2d)Castle Hassle 游戏引擎类》》模仿合金弹头Demo 游戏引擎类--tank大战 游戏引擎类--Tiny Seal 游戏引擎类--基于cocos2d的连连看游戏 游戏引擎类--简单炸弹人小游戏源码 游戏引擎类--切水果游戏 游戏引擎类幸运大转盘的抽奖游戏 游戏引擎-推箱子游戏 游戏引擎之雷电游戏的激光子弹 指示器类 指示器(HUD)之Android Style Toast 指示器-Activity Bar 指示器--Notify HUD 指示器之MBAlertView 指示器之YLActivityIndicatorView 其他类 财付通打印票据和拖动银行卡效果 寸光阴课程表 功能齐全的计算器 每日金句 扫雷游戏 数字输入 天气预报 之DDClock 之滚动视图旋转菜单 状态栏-StatusBar Notifier View 状态栏之MPNotificationView Ad Controller AdMob demo Animation之Gmail Like Loading AWVersionAgent Bee Framework Circle Menu Cocoa Touch Barcodes Contact Picker FileMD5Hash Fontastic Icons fontawesome Harpy iHasApp In-App Feedback In-App Purchase Inner Shadow Layer Keyboard之DLIDEKeyboard Leak Hunter Message Template NSLogger NSUndoManager Demo Open InApp Activity Passcode Passcode Lock Rating Control SBook ScaffoldKit for Core Data Shine Effect SKYdata Sliding Puzzle Board Spotlight System File Browser Ternary Search Tree UIBezierPath Symbol UITextField 焦点提示 Webview之UIWebView 离线浏览
Title: iOS 8 App Development Essentials Author: Neil Smyth Length: 824 pages Edition: 1 Language: English Publisher: CreateSpace Independent Publishing Platform Publication Date: 2014-12-16 ISBN-10: 1505586410 ISBN-13: 9781505586411 iOS 8 App Development Essentials is the latest edition of this popular book series and has now been fully updated for the Swift programming language, the iOS 8 SDK and Xcode 6. Beginning with the basics, this book provides an outline of the steps necessary to set up an iOS development environment. An introduction to the architecture of iOS 8 and programming in Swift is provided, followed by an in-depth look at the design of iOS applications and user interfaces. More advanced topics such as file handling, database management, in-app purchases, graphics drawing and animation are also covered, as are touch screen handling, gesture recognition, multitasking, iAds integration, location management, local notifications, camera access and video and audio playback support. Other features are also covered including Auto Layout, Twitter and Facebook integration, App Store hosted in-app purchase content, collection views, Sprite Kit-based game development, local map search and user interface animation using UIKit dynamics. The key new features of the iOS 8 SDK and Xcode 6 are also covered, including Swift playgrounds, universal user interface design using size classes, app extensions, Interface Builder Live Views, embedded frameworks, CloudKit data storage and TouchID authentication. The aim of this book is to teach the range of skills necessary to build apps for iOS 8. iOS 8 App Development Essentials takes a modular approach to the subject of iOS 8 application development for both the iPhone and iPad, with each chapter covering a self contained topic area consisting of detailed explanations, examples and step-by-step tutorials. This makes the book both an easy to follow learning aid and an excellent reference resource. Table of Contents Chapter 1. Start Here Chapter 2. Joining the Apple iOS Developer Program Chapter 3. Installing Xcode 6 and the iOS 8 SDK Chapter 4. A Guided Tour of Xcode 6 Chapter 5. Testing Apps on iOS 8 Devices with Xcode 6 Chapter 6. An Introduction to Swift Playgrounds Chapter 7. Swift Data Types, Constants and Variables Chapter 8. Swift Operators and Expressions Chapter 9. Swift Flow Control Chapter 10. The Swift Switch Statement Chapter 11. An Overview of Swift Functions and Closures Chapter 12. The Basics of Object Oriented Programming in Swift Chapter 13. An Introduction to Swift Inheritance Chapter 14. Working with Array and Dictionary Collections in Swift Chapter 15. The iOS 8 Application and Development Architecture Chapter 16. Creating an Interactive iOS 8 App Chapter 17. Understanding iOS 8 Views, Windows and the View Hierarchy Chapter 18. An Introduction to Auto Layout in iOS 8 Chapter 19. Working with iOS 8 Auto Layout Constraints in Interface Builder Chapter 20. An iOS 8 Auto Layout Example Chapter 21. Implementing iOS 8 Auto Layout Constraints in Code Chapter 22. Implementing Cross-Hierarchy Auto Layout Constraints in iOS 8 Chapter 23. Understanding the iOS 8 Auto Layout Visual Format Language Chapter 24. Using Size Classes to Design Universal iOS User Interfaces Chapter 25. Using Storyboards in Xcode 6 Chapter 26. Using Xcode 6 Storyboards to Create an iOS 8 Tab Bar Application Chapter 27. An Overview of iOS 8 Table Views and Xcode 6 Storyboards Chapter 28. Using Xcode 6 Storyboards to Build Dynamic TableViews with Prototype Table View Cells Chapter 29. Implementing iOS 8 TableView Navigation using Storyboards in Xcode 6 Chapter 30. An iOS 8 Split View Master-Detail Example Chapter 31. Implementing a Page based iOS 8 Application using UIPageViewController Chapter 32. An Example iOS 8 UIPageViewController Application Chapter 33. Working with Directories in Swift on iOS 8 Chapter 34. Working with Files in Swift on iOS 8 Chapter 35. iOS 8 Directory Handling and File I/O in Swift – A Worked Example Chapter 36. Preparing an iOS 8 App to use iCloud Storage Chapter 37. Managing Files using the iOS 8 UIDocument Class Chapter 38. Using iCloud Storage in an iOS 8 Application Chapter 39. Synchronizing iOS 8 Key-Value Data using iCloud Chapter 40. iOS 8 Data Persistence using Archiving Chapter 41. iOS 8 Database Implementation using SQLite Chapter 42. An Example SQLite based iOS 8 Application using Swift and FMDB Chapter 43. Working with iOS 8 Databases using Core Data Chapter 44. An iOS 8 Core Data Tutorial Chapter 45. An Introduction to CloudKit Data Storage on iOS 8 Chapter 46. An iOS 8 CloudKit Example Chapter 47. An iOS 8 CloudKit Subscription Example Chapter 48. An Overview of iOS 8 Multitouch, Taps and Gestures Chapter 49. An Example iOS 8 Touch, Multitouch and Tap Application Chapter 50. Detecting iOS 8 Touch Screen Gesture Motions Chapter 51. Identifying Gestures using iOS 8 Gesture Recognizers Chapter 52. An iOS 8 Gesture Recognition Tutorial Chapter 53. Implementing TouchID Authentication in iOS 8 Apps Chapter 54. An Overview of iOS 8 Collection View and Flow Layout Chapter 55. An iOS 8 Storyboard-based Collection View Tutorial Chapter 56. Subclassing and Extending the iOS 8 Collection View Flow Layout Chapter 57. Drawing iOS 8 2D Graphics with Core Graphics Chapter 58. Interface Builder Live Views and iOS 8 Embedded Frameworks Chapter 59. An iOS 8 Graphics Tutorial using Core Graphics and Core Image Chapter 60. Basic iOS 8 Animation using Core Animation Chapter 61. iOS 8 UIKit Dynamics – An Overview Chapter 62. An iOS 8 UIKit Dynamics Tutorial Chapter 63. An Introduction to iOS 8 Sprite Kit Programming Chapter 64. An iOS 8 Sprite Kit Level Editor Game Tutorial Chapter 65. An iOS 8 Sprite Kit Collision Handling Tutorial Chapter 66. An iOS 8 Sprite Kit Particle Emitter Tutorial Chapter 67. Integrating iAds into an iOS 8 App Chapter 68. iOS 8 Multitasking, Background Transfer Service and Fetching Chapter 69. Scheduling iOS 8 Local Notifications Chapter 70. An Overview of iOS 8 Application State Preservation and Restoration Chapter 71. An iOS 8 State Preservation and Restoration Tutorial Chapter 72. Integrating Maps into iOS 8 Applications using MKMapItem Chapter 73. An Example iOS 8 MKMapItem Application Chapter 74. Getting Location Information using the iOS 8 Core Location Framework Chapter 75. An Example iOS 8 Location Application Chapter 76. Working with Maps on iOS 8 with MapKit and the MKMapView Class Chapter 77. Working with MapKit Local Search in iOS 8 Chapter 78. Using MKDirections to get iOS 8 Map Directions and Routes Chapter 79. An Introduction to Extensions in iOS 8 Chapter 80. An iOS 8 Today Extension Widget Tutorial Chapter 81. Creating an iOS 8 Photo Editing Extension Chapter 82. Creating an iOS 8 Action Extension Chapter 83. Receiving Data from an iOS 8 Action Extension Chapter 84. Using iOS 8 Event Kit to Create Date and Location Based Reminders Chapter 85. Accessing the iOS 8 Camera and Photo Library Chapter 86. An Example iOS 8 Camera Application Chapter 87. iOS 8 Video Playback using AVPlayer and AVPlayerViewController Chapter 88. Playing Audio on iOS 8 using AVAudioPlayer Chapter 89. Recording Audio on iOS 8 with AVAudioRecorder Chapter 90. Integrating Twitter and Facebook into iOS 8 Applications Chapter 91. An iOS 8 Facebook Integration Tutorial using UIActivityViewController Chapter 92. iOS 8 Facebook and Twitter Integration using SLRequest Chapter 93. An iOS 8 Twitter Integration Tutorial using SLRequest Chapter 94. Making Store Purchases with the SKStoreProductViewController Class Chapter 95. Building In-App Purchasing into iOS 8 Applications Chapter 96. Preparing an iOS 8 Application for In-App Purchases Chapter 97. An iOS 8 In-App Purchase Tutorial Chapter 98. Configuring and Creating App Store Hosted Content for iOS 8 In-App Purchases Chapter 99. Preparing and Submitting an iOS 8 Application to the App Store

29,027

社区成员

发帖
与我相关
我的任务
社区描述
主要讨论与iOS相关的软件和技术
社区管理员
  • iOS
  • 大熊猫侯佩
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧