上一页 1 ··· 23 24 25 26 27 28 29 30 31 ··· 109 下一页

2015年7月26日

1058. A+B in Hogwarts (20)

摘要: 题目如下: If you are a fan of Harry Potter, you would know the world of magic has its own currency system -- as Hagrid explained it to Harry, "Sevent... 阅读全文

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

2015年7月25日

(八十七)AutoLayout的简介与实例

摘要: AutoLayout是继AutoResizing之后的一种自动布局方法,解决了AutoResizing无法处理控件间相互关系的问题。 AutoLayout在storyboard中通过底部工具条设置,底部工具条只有勾选了AutoLayout允许才能显示。 从左到右三个按钮分别是 对齐、固定和尺寸... 阅读全文

posted @ 2015-07-25 19:32 张大大123 阅读(115) 评论(0) 推荐(0) 编辑

1057. Stack (30) - 树状数组

摘要: 题目如下: Stack is one of the most fundamental data structures, which is based on the principle of Last In First Out (LIFO). The basic operations inc... 阅读全文

posted @ 2015-07-25 11:16 张大大123 阅读(160) 评论(0) 推荐(0) 编辑

2015年7月24日

(八十六)使用系统自带的分享框架Social.framework

摘要: 使用Social.framework十分简单,能够便捷的分享到主流的社交框架。 ①导入主头文件 #import ②以新浪微博为例,首先判断服务是否可用,接着创建分享控制器、调用方法,设置文字和图片,利用block回调。 如果没有分享的账号,系统会自动弹出对话框要求用户设置,因此不必开发者考虑。... 阅读全文

posted @ 2015-07-24 20:40 张大大123 阅读(172) 评论(0) 推荐(0) 编辑

(八十五)应用程序间的跳转与消息传递

摘要: 应用程序的跳转识别的是URL的协议头,每个应用都可以指定一个URL的协议头,以此作为跳转的依据,而URL的地址部分作为消息体。 【指定应用程序URL协议头的方法】 选择TARGETS->info->URL Types,添加URL Schemes: 【实现跳转的方法】 要实现应用级操作,需要借助... 阅读全文

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

2015年7月23日

(八十四)集成百度地图和基本使用

摘要: 配置的详细内容可以查看百度地图API文档来获取。 ①首先下载百度iOS SDK的完整包,将其中Lib的Release-iphonesimulator下的framework文件导入到工程,然后双击打开framework文件,再打开Resources,将其中的mapapi.bundle导入到工程。 ... 阅读全文

posted @ 2015-07-23 21:29 张大大123 阅读(155) 评论(0) 推荐(0) 编辑

(八十三)第三方类库不支持64位处理器的解决方法

摘要: 当Xcode编译提示Undefined symbol for architecture x86_64时,说明当前框架不支持64位系统,要使用该框架,只需要修改工程设置即可。 打开Build Settings,选择Architecture标签,按照下面的图片设置:在ARCHS_STANDARD后面... 阅读全文

posted @ 2015-07-23 21:15 张大大123 阅读(138) 评论(0) 推荐(0) 编辑

(八十二)利用苹果服务器获取导航信息和绘制路径

摘要: 要通过苹果的服务器获得导航数据,利用系统自带的类即可实现,先创建MKDirectionsRequest,然后利用request创建MKDirections,最后调用MKDirection对象的calculateDirectionsWithCompletionHandler:方法,该方法通过一个结... 阅读全文

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

1055. The World's Richest (25)

摘要: 题目如下: Forbes magazine publishes every year its list of billionaires based on the annual ranking of the world's wealthiest people. Now you are sup... 阅读全文

posted @ 2015-07-23 13:22 张大大123 阅读(141) 评论(0) 推荐(0) 编辑

1054. The Dominant Color (20)

摘要: 题目如下: Behind the scenes in the computer's memory, color is always talked about as a series of 24 bits of information for each pixel. In an image,... 阅读全文

posted @ 2015-07-23 13:17 张大大123 阅读(146) 评论(0) 推荐(0) 编辑

上一页 1 ··· 23 24 25 26 27 28 29 30 31 ··· 109 下一页

导航