自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

CocoaChen

write the code change the world

  • 博客(13)
  • 资源 (9)
  • 收藏
  • 关注

原创 ios开发——长按按出两个UIAlertView的解决办法

有时我们希望通过长按手势来删除一些数据,这是一个比较好的用户体验是在删除之前弹出一个UIAlertView来提醒用户进行二次确认。然而,这样会出现一个bug:你定义的UIAlertView会弹出两次,如下图

2014-11-27 10:34:49 1167

原创 iOS开发——保存自定义对象数组、字典到文件

在ios中,要保存普通的数组到文件可以直接调用-wirteToFile:atomically:方法写入,并且可以通过NSArray的方法-initWithContentOfFile:来读文件初始化数组。然而,当要保存的数组中存储的数据对象是自定义对象时,就得通过对象归档的方法来实现了

2014-11-25 21:42:25 7269

原创 ios开发——解决UICollectionView的cell间距与设置不符问题

在用UICollectionView展示数据时,有时我们希望将cell的间距调成一个我们想要的值,但往往不得结果。这里我们来看一个不错的方法

2014-11-24 19:31:20 15138 2

原创 ios开发——UICollectionView初阶

UICollectionView是一种新的数据展示视图

2014-11-23 10:06:53 3296

原创 ios开发——UIPanGestureRecognizer判定方向

今天在用这个导航栏的时候发现一个问题,UIPanGestureRecognizer是任何滑动手势都会辨别,它不像UISwipeGestureRecognizer一样有方向.这样在有些情况下会产生问题。

2014-11-21 21:23:07 6193

原创 UVa 10213 How Many Pieces of Land?

Problem GHow Many Pieces of Land?Input: Standard InputOutput: Standard OutputTime Limit: 3 seconds You are given an elliptical shaped land and you are asked to choose n arbitrary point

2014-11-07 17:20:01 1078

原创 UVa 143 Orchard Trees

Orchard TreesAn Orchardist has planted an orchard in a rectangle with trees uniformly spaced in both directions. Thus the trees form a rectangular grid and we can consider the

2014-11-06 17:08:41 1224

原创 UVa 264 Count on Cantor

Count on CantorOne of the famous proofs of modern mathematics is Georg Cantor's demonstration that the set of rational numbers is enumerable. The proof works by using an explicit

2014-11-06 07:43:39 1061

原创 UVa 160 Factors and Factorials

Count on Cantor One of the famous proofs of modern mathematics is Georg Cantor's demonstration that the set of rational numbers is enumerable. The proof works by using an explicit enumeration of rat

2014-11-05 23:14:49 1066

原创 UVa 642 Word Amalgamation

In millions of newspapers across the United States there is a word game called Jumble. The object of this game is to solve a riddle, but in order to find the letters that appear in the answer it is ne

2014-11-04 18:44:41 835

原创 UVa 623 500!

In these days you can more and more often happen to see programs which perform some useful calculations being executed rather then trivial screen savers. Some of them check the system message queue an

2014-11-03 17:40:57 889

原创 MacOX以及XCode下文件结束符(EOF)的输入

在Windows下我们可以通过ctrl+Z来输入文件结束符(EOF),而在MacOS下,EOF的z

2014-11-02 09:32:20 16495 6

原创 最长回文子串

题目:输入一个字符串,求出其中最长的回文子串。子串的含义是:在原串中连续出现的字符串片段。hu

2014-11-02 07:57:17 986

Cocos2D 3.x 横版动作游戏教程 Part2

本资源是博客《使用SpriteBuilder和Cocos2D 3.x开发横版动作游戏——Part 2》的工程代码,里面有实现了人物与视中心的移动、攻击与被攻击检测、人工智能、音乐播放等的横版动作游戏的完整源码

2015-01-24

Cocos2D 3.x 横版动作游戏教程 Part1

本资源是博客《使用SpriteBuilder和Cocos2D 3.x开发横版动作游戏——Part 1》的工程代码,里面有实现了场景、人物、动作、虚拟摇杆的横版动作游戏的第一部分源码。

2015-01-22

iOS非互斥多级列表

iOS版本的多级列表,非互斥,可以单独展开和关闭。支持动画

2014-12-04

iOS滑动评分控件

iOS的滑动评分控件,支持动画、滑动、非整型评分。

2014-12-04

ios侧边导航栏

仿新版QQ侧边导航栏的实现学习,带详细注释。

2014-09-21

封装sqlite操作

对ios的sqlite3数据库操作进行简单地封装

2014-09-18

Head First 栈和队列

参考博文《Head First 栈和队列》,对其中提到的各种栈与队列及应用进行了简单实现

2014-09-17

VIP账户管理系统

参考博客《Head First 线性表》,本资源为线性表的项目练习,涵盖了数据结构建立、链表的基本操作、文件的基本操作等基础功能,供一起学习数据结构交流用。

2014-09-15

Head First 线性表

参考我的博客《HeadFirst线性表》,简单实现了单链表、双向联表、循环链表、静态链表.供新手学习参考。

2014-09-15

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除