08 2015 档案

iOS7 CookBook精彩瞬间(三)UIActivityViewController的基本使用及自定义Activity
摘要:1.基本使用 UIActivityViewController主要用于分享内容,创建activityView的方法很简单,调用下面的方法创建: [[UIActivityViewController alloc] initWithActivityItems: applicationActivi... 阅读全文

posted @ 2015-08-31 19:16 张大大123 阅读(230) 评论(0) 推荐(0) 编辑

iOS7 CookBook精彩瞬间(二)NSSet、通过Subscript访问类成员等
摘要:1.NSSet的用法 ①NSSet是一种无序集合,基于hash实现,可以在线性时间复杂度内查找某个元素,如果要让元素有序,应当使用NSOrderedSet,要让集合可变,与NSArray类似,使用NSMutableSet和NSMutableOrderedSet即可。 ②从Set中取出... 阅读全文

posted @ 2015-08-31 18:40 张大大123 阅读(167) 评论(0) 推荐(0) 编辑

iOS7 CookBook精彩瞬间(一)property、selector细节、__unused
摘要:1.我们常常使用nonatomic,很多人只知道它的效率较高,却不知道其含义,其含义是非线程安全的,也就是说多线程修改时不加锁,可能出现多个线程先后修改而成为脏数据的情况。 2.unsafe_unretained和assign的作用是一致的,如果对象数据也采用这种方式,这个property就只是... 阅读全文

posted @ 2015-08-30 21:07 张大大123 阅读(195) 评论(0) 推荐(0) 编辑

1026. Table Tennis (30)
摘要:题目如下: A table tennis club has N tables available to the public. The tables are numbered from 1 to N. For any pair of players, if there are some t... 阅读全文

posted @ 2015-08-29 11:27 张大大123 阅读(895) 评论(0) 推荐(0) 编辑

1080. Graduate Admission (30)
摘要:题目如下: It is said that in 2013, there were about 100 graduate schools ready to proceed over 40,000 applications in Zhejiang Province. It would hel... 阅读全文

posted @ 2015-08-28 15:31 张大大123 阅读(155) 评论(0) 推荐(0) 编辑

1091. Acute Stroke (30)
摘要:题目如下: One important factor to identify acute stroke (急性脑卒中) is the volume of the stroke core. Given the results of image analysis in which the co... 阅读全文

posted @ 2015-08-28 14:30 张大大123 阅读(208) 评论(0) 推荐(0) 编辑

1095. Cars on Campus (30)
摘要:题目如下: Zhejiang University has 6 campuses and a lot of gates. From each gate we can collect the in/out times and the plate numbers of the cars cro... 阅读全文

posted @ 2015-08-27 16:30 张大大123 阅读(205) 评论(0) 推荐(0) 编辑

(一二五)手机网络状态的监听
摘要:对于一些需要与服务器进行长连接的App,需要对网络状态进行监控,当网络不佳时及时提醒用户,从而提高用户体验。通过苹果自带的框架和Reachability类可以实现网络状态改变的监听。 要实现网络监听,按照下面的步骤进行。 ①导入SystemConfiguration框架。 ②通过Xcode的帮助... 阅读全文

posted @ 2015-08-25 22:47 张大大123 阅读(212) 评论(0) 推荐(0) 编辑

1030. Travel Plan (30)
摘要:原题如下: A traveler's map gives the distances between cities along the highways, together with the cost of each highway. Now you are supposed to wri... 阅读全文

posted @ 2015-08-25 19:14 张大大123 阅读(135) 评论(0) 推荐(0) 编辑

1090. Highest Price in Supply Chain (25) -计层的BFS改进
摘要:题目如下: A supply chain is a network of retailers(零售商), distributors(经销商), and suppliers(供应商)-- everyone involved in moving a product from supplier ... 阅读全文

posted @ 2015-08-24 18:24 张大大123 阅读(178) 评论(0) 推荐(0) 编辑

1079. Total Sales of Supply Chain (25) -记录层的BFS改进
摘要:题目如下: A supply chain is a network of retailers(零售商), distributors(经销商), and suppliers(供应商)-- everyone involved in moving a product from supplier ... 阅读全文

posted @ 2015-08-23 22:57 张大大123 阅读(169) 评论(0) 推荐(0) 编辑

1076. Forwards on Weibo (30) - 记录层的BFS改进
摘要:题目如下: Weibo is known as the Chinese version of Twitter. One user on Weibo may have many followers, and may follow many other users as well. Hence... 阅读全文

posted @ 2015-08-23 22:42 张大大123 阅读(668) 评论(0) 推荐(0) 编辑

1098. Insertion or Heap Sort (25)
摘要:题目如下: According to Wikipedia: Insertion sort iterates, consuming one input element each repetition, and growing a sorted output list. Each itera... 阅读全文

posted @ 2015-08-22 19:28 张大大123 阅读(122) 评论(0) 推荐(0) 编辑

1077. Kuchiguse (20)
摘要:题目如下: The Japanese language is notorious for its sentence ending particles. Personal preference of such particles can be considered as a reflecti... 阅读全文

posted @ 2015-08-20 18:10 张大大123 阅读(245) 评论(0) 推荐(0) 编辑

(一二四)tableView的多组数据展示和手动排序
摘要:最近在写一个轻量级的网络游戏,遇到了技能优先顺序手动排序的需求,我就想到了iOS自带的tableView编辑功能,对其进行了初步探索,最后做出的效果如下图所示: 点击左边可以删除,拖住右边可以手动排序,要实现这个功能,分以下步骤。 ①用plist存储这些数据,可以看到数据分两个职业,每个职业4... 阅读全文

posted @ 2015-08-19 09:31 张大大123 阅读(278) 评论(0) 推荐(0) 编辑

1096. Consecutive Factors (20)
摘要:题目如下: Among all the factors of a positive integer N, there may exist several consecutive numbers. For example, 630 can be factored as 3*5*6*7, wh... 阅读全文

posted @ 2015-08-18 19:15 张大大123 阅读(179) 评论(0) 推荐(0) 编辑

(一二三)基于GCD的dispatch_once实现单例设计
摘要:要实现单例,关键是要保证类的alloc和init只被调用一次,并且被自身强引用防止释放。 近日读唐巧先生的《iOS开发进阶》,受益匪浅,通过GCD实现单例就是收获之一,下面把这个方法与大家分享。 在GCD中,有一个函数dispatch_once,可以实现代码段的一次性执行,和static修饰的... 阅读全文

posted @ 2015-08-17 21:02 张大大123 阅读(155) 评论(0) 推荐(0) 编辑

1084. Broken Keyboard (20)
摘要:题目如下: On a broken keyboard, some of the keys are worn out. So when you type some sentences, the characters corresponding to those keys will not a... 阅读全文

posted @ 2015-08-17 19:14 张大大123 阅读(136) 评论(0) 推荐(0) 编辑

1081. Rational Sum (20) -最大公约数
摘要:题目如下: Given N rational numbers in the form "numerator/denominator", you are supposed to calculate their sum. Input Specification: Each input fi... 阅读全文

posted @ 2015-08-17 19:10 张大大123 阅读(190) 评论(0) 推荐(0) 编辑

TCP连接建立系列 — 客户端接收SYNACK和发送ACK
摘要:主要内容:客户端接收SYNACK、发送ACK,完成连接的建立。 内核版本:3.15.2 我的博客:http://blog.csdn.net/zhangskd 接收入口 tcp_v4_rcv |--> tcp_v4_do_rcv |-> tcp_rcv... 阅读全文

posted @ 2015-08-15 22:47 张大大123 阅读(504) 评论(0) 推荐(0) 编辑

TCP连接建立系列 — 客户端的端口选取和重用
摘要:主要内容:connect()时的端口选取和端口重用。 内核版本:3.15.2 我的博客:http://blog.csdn.net/zhangskd 端口选取 connect()时本地端口是如何选取的呢? 如果用户已经绑定了端口,就使用绑定的端口。 如果用户没有绑定端口,则让系统自动选取... 阅读全文

posted @ 2015-08-15 22:42 张大大123 阅读(817) 评论(0) 推荐(0) 编辑

TCP连接建立系列 — 客户端发送SYN段
摘要:主要内容:客户端调用connect()时的TCP层实现。 内核版本:3.15.2 我的博客:http://blog.csdn.net/zhangskd connect的TCP层实现 SOCK_STREAM类socket的TCP层操作函数集实例为tcp_prot,其中客户端使用tcp_v... 阅读全文

posted @ 2015-08-15 22:35 张大大123 阅读(549) 评论(0) 推荐(0) 编辑

1074. Reversing Linked List (25)
摘要:题目如下: Given a constant K and a singly linked list L, you are supposed to reverse the links of every K elements on L. For example, given L being 1... 阅读全文

posted @ 2015-08-14 14:16 张大大123 阅读(173) 评论(0) 推荐(0) 编辑

(一二二)核心动画进阶
摘要:上节我们介绍了核心动画基础,这一节介绍核心动画的主要应用和局限性。 【核心动画的局限性】 有一点需要注意,所有的核心动画都是假象,只是修改了View的展示位置,而不能修改真实位置,即使设置了不复位,仿佛是位置移动了,其实layer还在原位,要证明这一点,可以在动画完成后打印layer的位置。 为... 阅读全文

posted @ 2015-08-13 20:20 张大大123 阅读(162) 评论(0) 推荐(0) 编辑

1089. Insert or Merge (25)
摘要:题目如下: According to Wikipedia: Insertion sort iterates, consuming one input element each repetition, and growing a sorted output list. Each itera... 阅读全文

posted @ 2015-08-13 12:14 张大大123 阅读(131) 评论(0) 推荐(0) 编辑

(一二一)核心动画基础
摘要:核心动画基于QuartzCore框架,只能用于CALayer,可以实现3D效果,它在子线程中执行动画,不会阻塞主线程。 要实现核心动画,主要使用CABasicAnimation实现单步动画、使用CAKeyframeAnimation实现帧动画。 动画的主要属性有duration、keyPath、... 阅读全文

posted @ 2015-08-12 22:39 张大大123 阅读(187) 评论(0) 推荐(0) 编辑

(一二〇)CALayer的一些特性
摘要:1.每个View都自带一个CALayer,称为rootLayer,layer可以和实现与View一样的显示功能,但是它不继承UIResponse,也就是说它无法处理事件,所以为了处理事件还是要用View,如果只是显示,可以选择layer。 下面的代码实现了自定义一个layer添加到控制器的roo... 阅读全文

posted @ 2015-08-12 21:20 张大大123 阅读(162) 评论(0) 推荐(0) 编辑

(一一九)通过CALayer实现阴影、圆角、边框和3D变换
摘要:在每个View上都有一个CALayer作为父图层,View的内容作为子层显示,通过layer的contents属性决定了要显示的内容,通过修改过layer的一些属性可以实现一些华丽的效果。 【阴影和圆角】 下面以一个普通的蓝色View为例,介绍layer的功能: _blueView.layer... 阅读全文

posted @ 2015-08-12 20:41 张大大123 阅读(1196) 评论(0) 推荐(0) 编辑

1086. Tree Traversals Again (25)
摘要:题目如下: An inorder binary tree traversal can be implemented in a non-recursive way with a stack. For example, suppose that when a 6-node binary tre... 阅读全文

posted @ 2015-08-12 14:02 张大大123 阅读(147) 评论(0) 推荐(0) 编辑

(一一八)利用block实现链式编程
摘要:有些时候需要不断地调用方法,如果使用传统方案,需要拿到对象多次调用,例如有一个Ball对象,实现了up、down、left、right四个方法,分别控制球的运动方向,如果要实现球向右再向下,需要这么写: [ball right];[ball down];如果能够按照下面这样写,会更加方便。 [[... 阅读全文

posted @ 2015-08-11 22:26 张大大123 阅读(145) 评论(0) 推荐(0) 编辑

(一一七)基本文件操作 -SDWebImage清除缓存 -文件夹的大小计算
摘要:在iOS的App沙盒中,Documents和Library/Preferences都会被备份到iCloud,因此只适合放置一些记录文件,例如plist、数据库文件。缓存一般放置到Library/Caches,tmp文件夹会被系统随机清除,不适宜防止数据。 【图片缓存的清除】 在使用SDWebIm... 阅读全文

posted @ 2015-08-11 22:16 张大大123 阅读(233) 评论(0) 推荐(0) 编辑

1085. Perfect Sequence (25) -二分查找
摘要:题目如下: Given a sequence of positive integers and another positive integer p. The sequence is said to be a "perfect sequence" if M #include #includ... 阅读全文

posted @ 2015-08-11 14:27 张大大123 阅读(174) 评论(0) 推荐(0) 编辑

1083. List Grades (25)
摘要:题目如下: Given a list of N student records with name, ID and grade. You are supposed to sort the records with respect to the grade in non-increasing... 阅读全文

posted @ 2015-08-11 14:17 张大大123 阅读(161) 评论(0) 推荐(0) 编辑

(一一六)新浪微博客户端的离线缓存实现思路
摘要:上一节(一一五)利用NSKeyedArchiver实现任意对象转为二进制介绍了将任意对象转化为二进制数据和还原的方法,可用于实现本节介绍的微博数据离线缓存。 通过新浪官方的API可以发现,返回的微博数据如下样式: { "statuses": [ { "c... 阅读全文

posted @ 2015-08-10 22:49 张大大123 阅读(484) 评论(0) 推荐(0) 编辑

(一一五)利用NSKeyedArchiver实现任意对象转为二进制
摘要:【应用背景】 在数据库中存储数据时,如果对象过于复杂,又不必要创建复杂的表,可以直接把整个对象转化为二进制存入数据库字段,然后取出后再还原即可。 【实现方法】 在PHP中,使用序列化和反序列化可以实现这样的功能。 在OC中,使用NSKeyedArchiver和NSKedUnarchiver可以实... 阅读全文

posted @ 2015-08-10 22:32 张大大123 阅读(187) 评论(0) 推荐(0) 编辑

(二)表的连接与外键约束
摘要:外键约束和表连接 【建立表的关系】 1.额外建立一张表描述两个表之间的关系,存储两张需要连接的表的主键对应关系。 2.利用外键约束 外键:一张表的某个字段引用着另一张表的主键,在数据多的表中多一个字段,存储对应的另一张表的主键。 外键的创建: CONSTRAINT FOREIGN K... 阅读全文

posted @ 2015-08-10 20:35 张大大123 阅读(303) 评论(0) 推荐(0) 编辑

1082. Read Number in Chinese (25)
摘要:题目如下: Given an integer with no more than 9 digits, you are supposed to read it in the traditional Chinese way. Output "Fu" first if it is negativ... 阅读全文

posted @ 2015-08-10 17:56 张大大123 阅读(278) 评论(0) 推荐(0) 编辑

(一一四)使用FMDB操作SQLite数据库
摘要:上节介绍了用系统自带的C语言库操作SQLite的方法,比较繁琐,使用FMDB会大幅度简化,并且是面向对象的,使用十分方便。 使用步骤如下: 先从github下载FMDB框架,然后把它导入工程。 ①导入libsqlite3.0.dylib库。 ②导入主头文件FMDatabase.h。 ③创建数据库... 阅读全文

posted @ 2015-08-09 23:51 张大大123 阅读(168) 评论(0) 推荐(0) 编辑

(一一三)使用系统自带框架操作SQLite3数据库
摘要:系统自带的框架是基于C语言的,使用比较繁琐。 下面是使用步骤: 首先导入libsqlite3.0.dylib。 ①在Document目录下打开数据库,如果没有则创建。 NSString *sqlitePath = [[NSSearchPathForDirectoriesInDomains(NSD... 阅读全文

posted @ 2015-08-09 23:23 张大大123 阅读(201) 评论(0) 推荐(0) 编辑

(一)SQLite与SQL语句基础
摘要:数据库一般分为 关系型和对象型,关系型是主流,对象型数据库是直接把对象存入数据库。 常用关系型数据库: PC:Oracle MySQL SQL Server DB2 嵌入式/移动端:SQLite 本文主要介绍SQLite的基本情况与SQL基本语句。 1.SQLite实际无类型,但是表层划分数据... 阅读全文

posted @ 2015-08-09 22:22 张大大123 阅读(238) 评论(0) 推荐(0) 编辑

1078. Hashing (25)
摘要:题目如下: The task of this problem is simple: insert a sequence of distinct positive integers into a hash table, and output the positions of the input... 阅读全文

posted @ 2015-08-09 19:27 张大大123 阅读(186) 评论(0) 推荐(0) 编辑

(一一二)图文混排中特殊文字的点击与事件处理
摘要:在上一篇文章(一一一)图文混排基础 -利用正则分割和拼接属性字符串中提到了对attributedText的特殊处理,将其中的话题、URL都用红色进行了表示,如下图所示: 本节要实现的功能是这样的attributedText在点击话题、URL时应该有所响应,而在点击其他位置的时候把事件传递给父类... 阅读全文

posted @ 2015-08-08 23:28 张大大123 阅读(340) 评论(0) 推荐(0) 编辑

1075. PAT Judge (25)
摘要:题目如下: The ranklist of PAT is generated from the status list, which shows the scores of the submittions. This time you are supposed to generate th... 阅读全文

posted @ 2015-08-08 19:37 张大大123 阅读(175) 评论(0) 推荐(0) 编辑

(一一一)图文混排基础 -利用正则分割和拼接属性字符串
摘要:很多时候需要用到图文混排,例如聊天气泡中的表情,空间、微博中的表情,例如下图: 红心和文字在一起。 比较复杂的情况是表情夹杂在文字之间。 要实现这种功能,首先要介绍iOS中用于显示属性文字的类。 用于文字显示的类除了text属性之外,还有attributedText属性,这个属性是NSAttr... 阅读全文

posted @ 2015-08-07 23:36 张大大123 阅读(290) 评论(0) 推荐(0) 编辑

1073. Scientific Notation (20)
摘要:题目如下: Scientific notation is the way that scientists easily handle very large numbers or very small numbers. The notation matches the regular exp... 阅读全文

posted @ 2015-08-07 12:47 张大大123 阅读(154) 评论(0) 推荐(0) 编辑

(一一〇)正则表达式的基本使用与RegexKitLite的使用
摘要:正则表达式常常用于匹配关键字,下面先介绍基本语法。 【基本语法】 ①中括号表示满足其中之一即可,例如[abc],则这个位置可以是a、b、c中任意一个。 ②在中括号中,可以通过-连接范围,例如a-z;多个范围之间并列不需要任何分隔符,例如[a-zA-Z] ③表示重复次数用{x},例如[a-z]{2... 阅读全文

posted @ 2015-08-06 22:45 张大大123 阅读(164) 评论(0) 推荐(0) 编辑

1072. Gas Station (30)
摘要:题目如下: gas station has to be built at such a location that the minimum distance between the station and any of the residential housing is as far ... 阅读全文

posted @ 2015-08-06 15:22 张大大123 阅读(183) 评论(0) 推荐(0) 编辑

(一〇九)UIButton的使用技巧 -imageView、titleLabel、圆角等
摘要:UIButton是一个常用控件,使用方法十分基本,但是有很多技巧常常不被注意,本文主要介绍UIButton的一些较高级技巧,用于实现图片和标签显示的美观性等。 开发时常常碰到按钮的下侧或者右侧有标题的情况,如下图所示: 左侧的是上下结构,右侧的是左右结构,要实现这两种显示,有两种方法。 【... 阅读全文

posted @ 2015-08-05 22:57 张大大123 阅读(157) 评论(0) 推荐(0) 编辑

(一〇八)iPad开发之横竖屏适配
摘要:在iPad开发中,横竖屏的视图常常是不同的,例如侧边栏Dock,在横屏时用于屏幕较宽,可以展示足够多的内容,每个按钮都可以展示出标题;而竖屏时Dock应该比较窄,只显示图标不现实按钮标题。 iPad比较重要的知识是不同类型设备的宽高在以点为单位的图形坐标系下固定为768x1024,因此常常利用此... 阅读全文

posted @ 2015-08-05 22:34 张大大123 阅读(349) 评论(0) 推荐(0) 编辑

1071. Speech Patterns (25)
摘要:题目如下: People often have a preference among synonyms of the same word. For example, some may prefer "the police", while others may prefer "the cop... 阅读全文

posted @ 2015-08-05 13:38 张大大123 阅读(143) 评论(0) 推荐(0) 编辑

(一〇七)iPad开发之modal的切换方式与展示方式
摘要:在iPad上modal有四种切换方式,分别是竖直进入(由下到上,默认方式)、水平翻转、淡入淡出。 属性要设置在将要modal出来的控制器上: /* typedef NS_ENUM(NSInteger, UIModalTransitionStyle) { UIModalTr... 阅读全文

posted @ 2015-08-04 16:01 张大大123 阅读(196) 评论(0) 推荐(0) 编辑

(一〇六)iPad开发之UIPopoverController的使用
摘要:很多App里都有一种点击显示的悬浮气泡菜单,例如下图: 在iPad上可以使用UIPopoverController实现这个功能,popoverController继承自NSObject而不是UIView,这是因为它本身并不能显示,popoverController的显示内容取决于成员属性con... 阅读全文

posted @ 2015-08-04 15:52 张大大123 阅读(203) 评论(0) 推荐(0) 编辑

1070. Mooncake (25)
摘要:题目如下: Mooncake is a Chinese bakery product traditionally eaten during the Mid-Autumn Festival. Many types of fillings and crusts can be found in ... 阅读全文

posted @ 2015-08-04 12:19 张大大123 阅读(143) 评论(0) 推荐(0) 编辑

1069. The Black Hole of Numbers (20)
摘要:题目如下: For any 4-digit integer except the ones with all the digits being the same, if we sort the digits in non-increasing order first, and then i... 阅读全文

posted @ 2015-08-04 12:14 张大大123 阅读(186) 评论(0) 推荐(0) 编辑

(一〇五)二维码的生成和扫描
摘要:【生成二维码】 iOS7以后苹果有CoreImage框架用于生成二维码,二维码通过滤镜生成,二维码滤镜可以将字符串转化为二维码。 注意字符串必须转化为NSData传入,通过KVC告诉滤镜。 滤镜输出为CIImage,注意要转化为UIImage使用。 代码如下: // 1.实例化二维码... 阅读全文

posted @ 2015-08-03 22:05 张大大123 阅读(185) 评论(0) 推荐(0) 编辑

(一〇四)使用Xcode6创建framework动态静态库
摘要:在Xcode6以前,创建framework可以使用iOS-Universal-Framework模板来创建framework,现在苹果已经提供了模板,如下图选择: 使用此模版创建的默认是动态库,方法和上节提到的.a一样,也可以使用lipo来合并真机和模拟器的库。 还有自定义动态库的应用是不被允... 阅读全文

posted @ 2015-08-03 20:06 张大大123 阅读(126) 评论(0) 推荐(0) 编辑

1068. Find More Coins (30)
摘要:题目如下: Eva loves to collect coins from all over the universe, including some other planets like Mars. One day she visited a universal shopping mall... 阅读全文

posted @ 2015-08-03 14:10 张大大123 阅读(142) 评论(0) 推荐(0) 编辑

(一〇三)静态库(.a)的调试
摘要:上节介绍的方法,只能创建静态库而不能调试,因为直接创建静态库工程并非可执行文件。 本文介绍的方法创建的静态库断点能够在调试时起作用。 为了能够调试静态库,应该在一个可执行工程(例如Single View Application),然后再其内部再加入一个静态库,加入的方法如下图所示: 点击工程配... 阅读全文

posted @ 2015-08-02 22:33 张大大123 阅读(332) 评论(0) 推荐(0) 编辑

(一〇二)静态库(.a)的打包
摘要:库是代码的集合,根据代码公开程度,分为开源库和闭源库。 其中闭源库主要包括静态库和动态库,是经过编译的二进制文件,看不到具体实现。 静态库的拓展名是.a或者.framework,动态库则是.dylib和.framework。 静态库在链接时会将库完整的复制到可执行文件中,被多次使用就有冗余拷贝。... 阅读全文

posted @ 2015-08-02 22:07 张大大123 阅读(201) 评论(0) 推荐(0) 编辑

1067. Sort with Swap(0,*) (25)
摘要:题目如下: Given any permutation of the numbers {0, 1, 2,..., N-1}, it is easy to sort them in increasing order. But what if Swap(0, *) is the ONLY op... 阅读全文

posted @ 2015-08-02 20:09 张大大123 阅读(128) 评论(0) 推荐(0) 编辑

(一〇一)集成静态库RHAddressBook实现OC访问通讯录
摘要:使用官方的AddressBook框架仅能使用C语言访问通讯录,十分不便,这里介绍集成第三方框架RHAddressBook的方法,该框架可以通过OC访问和操作通讯录。 该框架是一个静态库,集成比较复杂。 首先下载该框架:RHAddressBook,下面有关于集成的一些介绍,下面简单的介绍一下集成的... 阅读全文

posted @ 2015-08-01 19:29 张大大123 阅读(131) 评论(0) 推荐(0) 编辑

(一〇〇)使用AddressBookUI实现通讯录操作
摘要:上节提到使用AddressBook可以实现通讯录数据的获取,但有时需要用户自己选取联系人或者联系人信息,这时候就要借助AddressBookUI框架的ABPeoplePickerNavigationController控制器,该控制器可以通过modal方式展示,会提供一个功能完备的通讯录界面,并... 阅读全文

posted @ 2015-08-01 18:33 张大大123 阅读(159) 评论(0) 推荐(0) 编辑

ASP.net 路径问题 详解
摘要:各位有没有碰到在日常工作中经常在路径设置的时候把 “~/ 、./ 、../ 、 / 、http://www.cnblogs.com/“这些符号搞混搞乱了?偶尔还会因路径的问题郁闷了半天 还以为是程序上出了问题了。以下我是转自–脚本之家 里的一篇技文,略作修改,以备不时只需,各位有需... 阅读全文

posted @ 2015-08-01 18:24 张大大123 阅读(131) 评论(0) 推荐(0) 编辑

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
点击右上角即可分享
微信分享提示