- 博客(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开发——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
Cocos2D 3.x 横版动作游戏教程 Part2
2015-01-24
Cocos2D 3.x 横版动作游戏教程 Part1
2015-01-22
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人