贴一段我很久以前写的小demo,你们就明白了,是把textField套在alertView里的@interface ViewController : UIViewController { UILabel *la; UITextField *myTextField;}@implementa...
分类:
移动开发 时间:
2014-07-16 21:26:11
阅读次数:
282
#import "ViewController.h"@interface ViewController ()@property (weak, nonatomic) IBOutlet UILabel *show;@end@implementation ViewController - (voi...
分类:
其他好文 时间:
2014-07-16 20:41:43
阅读次数:
186
1、利用xcode6控件搭成计算器界面2、程序#import "ViewController.h"@interface ViewController (){ float result; int i;}@property (weak, nonatomic) IBOutlet UILabel *lab....
分类:
其他好文 时间:
2014-07-16 20:31:06
阅读次数:
334
先新建一个类 startCalculator声明如下#import @interface StartCalculator : NSObject//声明两个要计算的变量@property float opValue1;@property float opValue2;//声明一个运算符@propert...
分类:
其他好文 时间:
2014-07-16 20:30:08
阅读次数:
241
什么是CGI CGI全称是“公共网关接口”(Common Gateway Interface),HTTP服务器与你的或其它机器上的程序进行“交谈”的一种程序,运行在服务器(实体服务器啊!)上。是一种重要的互联网技术,可以让一个客户端从网页浏览器向在执行在Web服务器上的程序请求数据。CGI描述...
分类:
Web程序 时间:
2014-07-16 19:37:24
阅读次数:
228
1、复合通过包括作为实例变量的的对象指针实现的。 @interface Unicycle : NSObject { Pedal*pedal; Tire*tire; }//Pedal和tire通过复合的方式组成了Unicycle2、存取方法——用来读取或者改变某个对象属性...
分类:
其他好文 时间:
2014-07-14 09:53:34
阅读次数:
162
1. Parcelable接口Interface for classes whose instances can be written to and restored from a Parcel。 Classes implementing the Parcelable interface must ...
分类:
移动开发 时间:
2014-07-13 09:38:55
阅读次数:
191
iOS开发项目篇—24字典转模型一、直接使用字典转模型1.微博数据转模型示意图:2.字典转模型查询字段:新建需要的数据模型:字典转模型相关的代码:YYUserModel.h文件 1 // 2 // YYUserModel.h 3 // 4 5 #import 6 7 @interface Y...
分类:
移动开发 时间:
2014-07-12 15:36:54
阅读次数:
188
直接调用代理类,用代理类访问目标类。package Pak;public interface Sourceable { public void method();} 1 package Pak; 2 3 public class Source implements Sourceabl...
分类:
编程语言 时间:
2014-07-12 15:34:03
阅读次数:
194
1,引入文件,#import IOS7 中可以这样写@import Foundation;2,在.h文件引入的是公用的,在.m文件里面引用的是本类私有的。私有属性声明@interface Card()//在这里面声明@property (strong) NSString *contents;@end...
分类:
移动开发 时间:
2014-07-12 14:51:30
阅读次数:
260