iOS开发中各种圆角也随处可见,最简单给控件添加圆角的方式就是给视图的layer设置corner属性了: [Objective-C] 查看源文件 复制代码 ? 1 2 self.blueView.layer.cornerRadius = 5.f; self.blueView.layer.masksT ...
分类:
移动开发 时间:
2016-06-14 14:03:34
阅读次数:
237
题目链接:https://leetcode.com/problems/rectangle-area/
题目:
Find the total area covered by two rectilinear rectangles in a 2D plane.
Each rectangle is defined by its bottom left corner and top rig...
分类:
其他好文 时间:
2016-06-12 03:24:47
阅读次数:
115
SIFT(Scale-invariant feature transform)是一种检测局部特征的算法,该算法通过求一幅图中的特征点(interest points,or corner points)及其有关scale 和 orientation 的描述子得到特征并进行图像特征点匹配,获得了良好效果 ...
分类:
其他好文 时间:
2016-06-11 21:23:00
阅读次数:
288
代码地址:https://github.com/peng666/blogs/tree/gh-pages/turn 在线测试地址:http://peng666.github.io/blogs/turn/ ...
分类:
其他好文 时间:
2016-06-10 22:57:00
阅读次数:
126
var id=‘123’; $.ajax({ url:’http://www.xxx.com/ajax', type:'post', dataType: "json", data:{wurl:w_url,murl:m_url}, async : turn, error:function(){ }, ...
分类:
Web程序 时间:
2016-06-07 06:35:45
阅读次数:
134
题目描述: There are n bulbs that are initially off. You first turn on all the bulbs. Then, you turn off every second bulb. On the third round, you toggle ...
分类:
编程语言 时间:
2016-06-05 21:11:57
阅读次数:
181
题目链接:https://leetcode.com/problems/range-sum-query-2d-immutable/
题目:
Given a 2D matrix matrix, find the sum of the elements inside the rectangle defined by its upper left corner (row1, col1) and l...
分类:
其他好文 时间:
2016-05-31 06:28:37
阅读次数:
217
效果1 效果二, 效果一的基础上加上以下样式 效果三 非45度角(效果一的样式加以下代码) 效果四 效果三的基础上加上以下代码 更多参考链接http://www.w3cplus.com/css3/css-secrets/folded-corner-effect.html ...
分类:
Web程序 时间:
2016-05-30 12:45:56
阅读次数:
414
Turn the corner Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 2785 Accepted Submission(s): 1102 ...
分类:
其他好文 时间:
2016-05-27 16:33:24
阅读次数:
163
一天一道LeetCode系列(一)题目
A robot is located at the top-left corner of a m x n grid (marked ‘Start’ in the diagram below).
The robot can only move either down or right at any point in time. The robo...
分类:
其他好文 时间:
2016-05-27 12:18:25
阅读次数:
209