ProblemYou want to display an image instead of text as the title of the current view controlleron the navigation controller SolutionUse the titleView property of the view controller’s navigation item - (void)viewDidLoad { [super viewDidLoad]; /* Crea…
转自:http://stackoverflow.com/questions/17074365/status-bar-and-navigation-bar-appear-over-my-views-bounds-in-ios-7 Question: I recently downloaded Xcode DP to test my apps . The first thing I noticed and confirmed is that my view's bounds is not alway…
Presenting and Managing Views with UIViewController ProblemYou want to switch among different views in your application. SolutionUse the UIViewController class. ( Apple’s strategy for iOS development was to use the model-view-controller (MVC) divisio…
ProblemYou would like to directly manipulate the array of view controllers associated with aspecific navigation controller SolutionUse the viewControllers property of the UINavigationController class to access andmodify the array of view controllers…
ProblemYou would like to allow your users to move from one view controller to the other witha smooth and built-in animation. SolutionUse an instance of UINavigationController. What it's like If you’ve used an iPhone, iPod Touch, or iPad before, chanc…
You want to be able to allow your users to share content inside your apps with theirfriends, through an interface, such as Facebook and Twitter. Solution Create an instance of the UIActivityViewController class and share your contentthrough this clas…
You would like to present a few options to your users from which they can pick anoption, through a UI that is compact, simple, and easy to understand. effect: 1. declare control #import "ViewController.h" @interface ViewController () @property (…
Picking the Date and Time with UIDatePicker effect: 1. declaring a property of type UIDatePicker #import "ViewController.h" @interface ViewController () @property (nonatomic, strong) UIDatePicker *myDatePicker; @end @implementation ViewControlle…
环境:XCODE:5.0.2  IOS7模拟器 界面:使用storyboard 拖拽 简单应用:一个CoreData的CRUD用例. 界面如下图(一个UITableViewController 列表   查询和删除  选择UITableViewCell后显示详细页面 一个UIViewController 进行编辑或添加数据) TableViewController  点击 +号 Push跳转到 DetaiViewController;选择Cell后也Push到DetailViewControll…
self.navigationController.navigationBar.barTintColor = [UIColor blackColor]; self.navigationController.navigationBar.tintColor = [UIColor whiteColor]; [self.navigationController.navigationBar setTitleTextAttributes:@{NSForegroundColorAttributeName :…
自从IOS7后UINavigationBar的一些属性的行为发生了变化.你可以在下图看到: 现在,如果你要修改它们的颜色,用下面的代码: 1 2 3 4 self.navigationController.navigationBar.barTintColor = [UIColor blackColor]; self.navigationController.navigationBar.tintColor = [UIColor whiteColor]; [self.navigationContro…
Resource Management in View Controllers 视图控制器的资源管理 View controllers are an essential part of managing your app’s resources. View controllers allow you to break your app up into multiple parts and instantiate only the parts that are needed. But more t…
View Controller Basics   视图控制器基础 Apps running on iOS–based devices have a limited amount of screen space for displaying content and therefore must be creative in how they present information to the user. Apps that have lots of information to display…
https://developer.apple.com/library/ios/featuredarticles/ViewControllerPGforiPhoneOS/AboutViewControllers/AboutViewControllers.html#//apple_ref/doc/uid/TP40007457-CH112-SW10 https://developer.apple.com/library/ios/featuredarticles/ViewControllerPGfor…
转自:http://www.raywenderlich.com/32963/apple-push-notification-services-in-ios-6-tutorial-part-2 Update 4/12/2013: Fully updated for iOS 6 (original post byMatthijs Hollemans, update by Ali Hafizji). This is the second part of a 2-part tutorial series…
Mirror of Apple’s iOS samples This repository mirrors Apple’s iOS samples. Name Topic Framework Description ABUIGroups Data Management(Contact Data) AddressBook ABUIGroups shows how to check and request access to a user’s address book database. It al…
元素控件 尺寸(PTS) Window(含状态栏) 320 x 480 Status Bar的高度 20 Navigation Bar的高度 44 含Prompt的Navigation Bar的高度 74 Navigation Bar的图标 20×20(透明的png) Tool Bar的高度 44 Tool Bar的图标 20×20(透明的png) Tab Bar的高度 49 Tab Bar的图标 30×30(透明的png) 竖直时键盘的高度 216.252(iOS 5+的中文键盘) 水平时键盘…
元素控件 尺寸(pts) Window(含状态栏) 320 x 480 Status Bar的高度 20 Navigation Bar的高度 44 含Prompt的Navigation Bar的高度 74 Navigation Bar的图标 20×20(透明的png) Tool Bar的高度 44 Tool Bar的图标 20×20(透明的png) Tab Bar的高度 49 Tab Bar的图标 30×30(透明的png) 竖直时键盘的高度 216.252(iOS 5+的中文键盘) 水平时键盘…
gRPC is an universal remote procedure call framework developed by Google that has been gaining interests among many software developers that were developing microservices in recent years because its open source, language neutral, compact binary size,…
Github用法 git-recipesGit recipes in Chinese. 高质量的Git中文教程. lark怎样在Github上面贡献代码 my-git有关 git 的学习资料 gitignore非常赞 有用的.gitignore模板集合(忽略上传的文件集合),包含了各种语言. 完整App@ open-source-ios-apps- iOS开源App集合,分:swift与Objective-C--国外人整理. NewsBlur作者独自一个人 Samuel Clay 做出来的一款名…
Introduction (已看) Prerequisites What Has Changed in the Sixth Edition? Our Teaching Philosophy How to Use This Book How This Book Is Ogranized Style Choices Typographical Conventions Necessary Hardware and Software 1. A Simple ios Application (已看) Cr…
下面几个库是在之前的一个ios app开发中使用过的一些外部库: 1. zbar :2. shakebox :3. processbar :4. tableviewcontroller :新版的static table要求父容器一定要是tableview ,不能是view.5. viewcontroller :7. container :8. 启动view的几个内置函数调用时机:viewDidLoad, viewWillLoad.9. processbar.等待指示器控件的使用可以提示用户当前正…
iOS 第三方库.插件.知名博客总结 用到的组件 1.通过CocoaPods安装 项目名称 项目信息 AFNetworking 网络请求组件 FMDB 本地数据库组件 SDWebImage 多个缩略图缓存组件 UICKeyChainStore 存放用户账号密码组件 Reachability 监测网络状态 DateTools 友好化时间 MBProgressHUD 一款提示框第三方库 MWPhotoBrowser 一款简单的 iOS 照片浏览控件 CTAssetsPickerController…
一.应用图片标准iOS控件里的图片资源,苹果已经做了相应的升级,我们需要操心的是应用自己的图片资源.就像当初为了支持iPhone 4而制作的@2x高分辨率版本(译者:以下简称高分)图片一样,我们要为iPad应用中的图片制作对应的高分版本.我知道不少开发者很有预见性的早在iOS 5.0 SDK上就完成了这一步升级.可是我还是要强调一点,那就是之前 Michael Jurewitz (@Jury)在推上提到过的: — 如果想让你的高分图片显示在新iPad上,你必须用Xcode 4.3.1 连同iOS…
iOS Programming UISplitViewController  The iPad, on the other hand, has plenty of screen space to present both views using a built-in class called UISplitViewController. iPad 有足够的屏幕空间来展现两个view用built-in 类称为UISplitViewController. UISplitViewController…
 iOS Programming Camera  1 1 Displaying Images and UIImageView 1.1  put an instance of UIImageView on the screen. Then drag an instance of UIImageView onto the view and position it below the label. A UIImageView displays an image according to its con…
iOS Programming UINavigationController the Settings application has multiple related screens of information: a list of settings (like Sounds), a detailed page for each setting, and a selection page for each detail. This type of interface is called a…
1.app分发方式 所谓分发方式简单点讲就是你的app都可以通过哪些途径给用户使用. a:个人或者公司的开发者账号 可以上传appStore,用户通过appStore下载. b:企业账号:打包分发. c:打包到本地: product->archive /window->organizer --->import -->save for ad hoc.有一段时间由于xcode版本问题,项目不能真机运行,就是通过打包到本地,再安装到手机上进行测试的. 需要先下载证书. d:通过第三方:…
来源:蝴蝶之梦天使 链接:http://www.jianshu.com/p/d333cf6ae4b0 在iOS开发中经常需要使用的或不常用的知识点的总结,几年的收藏和积累(踩过的坑). 一. iPhone Size 手机型号 屏幕尺寸 iPhone 4 4s 320 * 480 iPhone 5 5s 320 * 568 iPhone 6 6s 375 * 667 iphone 6 plus 6s plus 414 * 736 二. 给navigation Bar 设置 title 颜色 UIC…
原文地址:http://www.jianshu.com/p/930643270455 总所周知,苹果从iOS7开始采用扁平化的界面风格,颠覆了果粉们"迷恋"的拟物化风格.对于开发者而言,全新的风格带来新的接口,这些新的接口改动中,有些更加合理了,有些更加方便了,而有些可能让开发者容易迷糊,下面本人就来谈谈iOS7这些新添加"鬼魅"的接口中的经常接触到的一个----UITabBar/UINavigationBar的translucent属性. 新的属性transluc…