最新消息:20210816 当前crifan.com域名已被污染,为防止失联,请关注(页面右下角的)公众号

【源码下载】在实现了一系列的扩展功能后的Your Second iOS App的源码下载

iOS crifan 3257浏览 0评论

之前参考Mac官网教程:

Your Second iOS App

去一步步照葫芦画瓢实现了相应的教程里面的功能:

参考教程开发iOS的第二个app:Storyboards – BirdWatching

之后,又参考其中:

Your Second iOS App – Next Steps

的建议,去以此实现了一系列的扩展的功能:

给Your Second iOS App的BirdWatching添加屏幕旋转(orientation rotation)的支持

【已解决】iOS中,在屏幕转换/切换时,如何实现自动或手动调整TextField的宽度

给Your Second iOS App的BirdWatching设置只有用户在TextField中输入内容后才激活Done键

给输入框(TextFiled)添加清除按键(Clear Button/Key)

给Your Second iOS App的BirdWatching从文本输入框TextField变成换为下拉菜单UIPickerView

给Your Second iOS App的BirdWatching中,添加自定义日期

给Your Second iOS App的BirdWatching添加Location Services

给Your Second iOS App:BirdWatching添加地图的支持

给Your Second iOS App的BirdWatching添加让列表可修改,可排序

给Your Second iOS App:BirdWatching添加支持用户自定义图片

给Your Second iOS App:BirdWatching添加支持程序退出后,用户数据仍然保留

 

现在放出完成了这些扩展功能之后的Your Second iOS App的源代码。

先声明一下:

当前的代码,也未经过优化,估计还是存在内存泄露等问题的。

但虽然很是粗糙,但是还是可以工作的。

但是作为基本的演示功能如何实现的话,还是可以凑合看的。

供需要参考的人下载:

 

实现了扩展功能之后的Your Second iOS App项目源代码 下载地址:

your_second_ios_app_v2012-09-12_finishExtendFunctions.7z

转载请注明:在路上 » 【源码下载】在实现了一系列的扩展功能后的Your Second iOS App的源码下载

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

网友最新评论 (3)

  1. 感谢博主,刚开始学习IOS开发,也是自己想完善You second IOS app,遇到一些坎,在博主的文章里得到了帮助。佩服博主的钻研和学习态度,再次感谢~
    oasisfans11年前 (2012-12-21)回复
  2. anitispam email address here : tliang at me dot com 谢谢你的代码下载。我和你的路差不多,只是少了一点 viewDidLoad 没有加上 [self configureView]; 因为在文档中没有这一个。(才开始学习2周) 再一次谢谢。
    TAOLIANG12年前 (2012-12-09)回复
    • 急盼回复,我也是根据官网的文章来实现second ios app,遇到一个问题,在master 的处理addview 的done:segue方法里面,提示错误,../BirdWatching/BirdsMasterViewController.m:136:21: Property 'birdSighting' not found on object of type 'AddSightingViewController *'.该方法代码如下: - (IBAction)done:(UIStoryboardSegue *)segue{ if ([[segue identifier] isEqualToString:@"ReturnInput"]) { AddSightingViewController *addController = [segue sourceViewController]; if (addController.birdSighting) { [self.dataController addBirdSightingWithSighting:addController.birdSighting]; [[self tableView] reloadData]; } [self dismissViewControllerAnimated:YES completion:NULL]; } } AddSightingViewController.h代码如下: #import @class BirdSighting; @interface AddSightingViewController : UITableViewController @property (strong, nonatomic) BirdSighting *birdSighting; @property (weak, nonatomic) IBOutlet UITextField *birdNameInput; @property (weak, nonatomic) IBOutlet UITextField *locationINput; @end AddSightingViewController.m代码如下: #import "AddSightingViewController.h" #import "BirdSighting.h" @interface AddSightingViewController () @end @implementation AddSightingViewController - (void) prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender{ if ([[segue identifier] isEqualToString:@"ReturnInput"]) { if ([self.birdNameInput.text length] || [self.locationINput.text length]) { BirdSighting *sighting; NSDate *today = [NSDate date]; sighting = [[BirdSighting alloc] initWithName:self.birdNameInput.text location:self.locationINput.text date:today]; self.birdSighting = sighting; } } } 看提示错误,好像是找不到birdSighting这个property,可事实上我在AddSightingViewController.h定义了.
      fanl198211年前 (2012-12-19)回复
88 queries in 0.159 seconds, using 22.17MB memory