码迷,mamicode.com
首页 >  
搜索关键字:text    ( 52583个结果
如果AlertView输入框为空,则禁止点击确定按钮
//UIAlertView的代理方法(创建UIAlertView之后,copy此代理方法即可)- (BOOL)alertViewShouldEnableFirstOtherButton:(UIAlertView *)alertView{ //1.取出输入框中的文字 NSString *text .....
分类:其他好文   时间:2014-07-22 23:00:34    阅读次数:330
设计模式——工厂方法
目的定义创建对象的方法/接口,然后让子类来决定创建具体的类的对象。通过不同的类,使得实例化延迟至子类。特点必须引入继承,才能算是工厂方法模式。Found in JDK APIjava.util.Calendar#getInstance()java.text.NumberFormat#getInsta...
分类:其他好文   时间:2014-07-22 23:00:16    阅读次数:282
C#简单工厂模式(文件案例)
using System;using System.Collections.Generic;using System.IO;using System.Linq;using System.Text;using System.Threading.Tasks;namespace 读文件案例{ cla...
分类:其他好文   时间:2014-07-22 22:59:55    阅读次数:241
UVA之537 - Artificial Intelligence?
Artificial Intelligence?  Physics teachers in high school often think that problems given as text are more demanding than pure computations. After all, the pupils have to read and underst...
分类:其他好文   时间:2014-05-02 23:39:35    阅读次数:485
cocos2d-x3.0 Slider
.h #include "cocos2d.h" #include "cocos-ext.h" #include "ui/CocosGUI.h" #include "cocostudio/CocoStudio.h" USING_NS_CC; USING_NS_CC_EXT; using namespace ui; RichText* _richText; Text...
分类:其他好文   时间:2014-05-02 22:25:51    阅读次数:459
简单版猜拳游戏
界面很简单//玩家类using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace 猜拳游戏{ /// //...
分类:其他好文   时间:2014-05-02 12:04:15    阅读次数:292
HTML中META属性详解 转载自 hero_213的博客
HTML中META属性详解meta是html语言head区的一个辅助性标签。几乎所有的网页里,我们可以看到类似下面这段的html代码: <head> <meta http-equiv= "content-Type " content= "text/html; charset=gb2312 ">...
分类:Web程序   时间:2014-05-02 12:02:03    阅读次数:314
C++ 控制台代码输出控制
在C++控制台应用程序中可以控制控制台输出的字体颜色和 接受任意按键退出#ifndef CONSOLE_UTILS_H#define CONSOLE_UTILS_H#include #include #include //default text colors can be found in win...
分类:编程语言   时间:2014-05-02 00:23:19    阅读次数:450
thinkphp的分页格式自定义
public function index(){         header('Content-Type:text/html;charset=utf-8 '); $M = M("Constant");           $count = $M->where($where)->count();           import("ORG.Util.Page"); // 导入分页类   ...
分类:Web程序   时间:2014-04-30 22:27:39    阅读次数:343
SQL编码中注意的性能问题
1、选择合适的数据类型 为列选择最小化的数据类型 如果一列中的文本长度不一,使用VARCHAR而不是CHAR 不存储Unicode不要使用NVARCHAR或者NCHAR 如果一行的长度不超过8000,使用VARCHAR而不是TEXT 对于仅存数字的列要使用数字类型而不要用字符类型 不要使用字符串类型存储日期数据。 2、谨慎使用触发器 保持触发器内的代码最小化 可能的情况下尽量用其...
分类:数据库   时间:2014-04-30 22:24:38    阅读次数:334
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!