//UIButton的定义 UIButton *button=[[UIButton buttonWithType:(UIButtonType); 能够定义的button类型有以下6种, typedef enum { UIButtonTypeCustom = 0, 自定义风格 ...
分类:
其他好文 时间:
2015-09-12 22:15:27
阅读次数:
137
// typedef NS_ENUM(NSInteger, UISegmentedControlStyle) { // UISegmentedControlStylePlain, // large plain // UISegmentedControlStyleBordered,...
分类:
其他好文 时间:
2015-09-12 18:59:45
阅读次数:
126
什么是位运算常用的位运算主要有与(&), 或(|)和非(~), 比如:1 01 & 00 = 00;2 01 | 00 = 01;3 ~01 =0 0;运用在权限设计中 先建立一个枚举表示所有的权限管理操作:1 [Flags] 2 public enum Permissions 3 {...
条款05 : 了解C++默默编写并调用哪些函数水电费条款02 : 尽量以const,enum,inline 替换#define水电费条款02 : 尽量以const,enum,inline 替换#define水电费条款02 : 尽量以const,enum,inline 替换#define水电费
分类:
编程语言 时间:
2015-09-12 00:41:42
阅读次数:
248
一、概述 ?enum 的全称为 enumeration, 是 JDK 1.5 ?中引入的新特性,存放在 java.lang 包中。 ?创建枚举类型要使用 enum 关键字,隐含了所创建的类型都是 java.lang.Enum 类的子类(java.lang.Enum 是一个抽...
分类:
编程语言 时间:
2015-09-11 17:46:43
阅读次数:
313
C# Enum 简易权限设计 使用FlagsAttribute属性基本权限设计:/// /// 权限列举/// [FlagsAttribute]public enum Permissions{ [Description("未设定")] None = 0, [Description(...
分类:
编程语言 时间:
2015-09-11 12:13:47
阅读次数:
208
再正式开始之前,先来介绍一下IOS的键盘类型:一、键盘风格UIKit框架支持8种风格键盘?12345678910typedef enum { UIKeyboardTypeDefault, // 默认键盘:支持所有字符 UIKeyboardTypeASCIICapable, // 支持ASCII的默认...
分类:
其他好文 时间:
2015-09-11 10:27:08
阅读次数:
194
条款01 : 视C++为一个语言联邦 C++ == C(C基本语法) + Object-Oriented C++(类,封装,继承,多态……) + Template C++(泛型编程) + STL(容器,迭代器,算法,函数对象) .条款02 : 尽量以const,enum,inline 替换#def....
分类:
编程语言 时间:
2015-09-11 09:10:32
阅读次数:
174
Java中Enum方法toString与ordinal方法public enum Language { C, Java, PHP;}public class EnumDemo { public static void main(String args[]) { ...
分类:
编程语言 时间:
2015-09-10 00:29:39
阅读次数:
400
?Explain查询:rows,定位性能瓶颈。只需要一行数据时,使用LIMIT1.在搜索字段上建立索引。使用ENUM而非VARCHAR。选择区分度高的列作为索引。采用扩展索引,而不是新建索引。慢查询日志:log-slow-queries,mysqldumpslow工具。避免select *尽可能使用...
分类:
数据库 时间:
2015-09-08 23:26:21
阅读次数:
445