2015年8月4日

(一〇七)iPad开发之modal的切换方式与展示方式

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

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

(一〇六)iPad开发之UIPopoverController的使用

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

posted @ 2015-08-04 15:52 张大大123 阅读(200) 评论(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 阅读(137) 评论(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 阅读(184) 评论(0) 推荐(0) 编辑

导航