1、接口/*
* Creation : 2015年6月30日
*/
package com.guice.InterfaceManyImpl;public interface Service {
public void execute();
}
2、两个实现类
package com.guice.InterfaceManyImpl;public class OneService imple...
分类:
其他好文 时间:
2015-07-01 12:18:05
阅读次数:
113
1 #import "AppDelegate.h" 2 3 @interface AppDelegate () 4 @property (nonatomic,strong)UILabel *label; 5 @end 6 7 @implementation AppDelegate 8 9 -...
分类:
其他好文 时间:
2015-06-30 23:36:55
阅读次数:
172
1 #import "AppDelegate.h" 2 3 @interface AppDelegate () 4 5 @end 6 7 @implementation AppDelegate 8 9 10 - (BOOL)application:(UIApplication *)appl...
分类:
其他好文 时间:
2015-06-30 23:31:57
阅读次数:
224
1、关于类方法和实例方法: (1)、类方法是直接使用类引用的方法,不需要实例化就可以调用方法,实例方法对应于具体的实例,需要实例化才能够使用这些方法; (2)、类方法以“+”开头,实例方法以“-”开头; (3)、不管是什么方法,都要定义在@implementation部分里面; (4)、一般在项目中...
分类:
其他好文 时间:
2015-06-30 21:47:30
阅读次数:
98
#import "LCSView.h"
@implementation LCSView
////绘图
- (void)drawRect:(CGRect)rect
{
#if 0
//图形上下文对象
CGContextRef context = UIGraphicsGetCurrentContext();
...
分类:
移动开发 时间:
2015-06-30 18:21:10
阅读次数:
221
#import "ViewController.h"@interface ViewController ()
@property(nonatomic, strong)UIButton *button;
@end@implementation ViewController- (void)viewDidLoad {
[super viewDidLoad];
self.button = [...
分类:
其他好文 时间:
2015-06-30 15:01:15
阅读次数:
104
面向对象概念初步1.类的定义类的定义分两步:首先在类(单元)的接口(interface)部分说明这个方法.然后在实现部分(implementation)部分编写方法的实现代码.定义:type类名=class(父类名)数据域说明; //类内部使用变量/常量的声明;方法说明首部;end;实现代码:pro...
collectionView用法和我们常用的UITableview用法差不多,两个代理下面就是关于UIcollectionView的使用首先我们创建一个UICollectionViewCell,初始化@implementation CollectionViewCell-(instancetype)i...
分类:
其他好文 时间:
2015-06-29 16:12:04
阅读次数:
84
在安装过vs2015之后出现未能正确加载“Microsoft.VisualStudio.Editor.Implementation.EditorPackage“提示信息在VS的安装目录下,找到ActivityLog.xml 打开vs2012加载项目的时候报如下的错误: 未能正确加载“Micro...
分类:
其他好文 时间:
2015-06-29 14:50:20
阅读次数:
896
Visual Assist 快捷键 Visual Assist(以下称VA)是一款非常棒的Visual Studio插件工具,特别是在VS中,提供了很多很好用的辅助功能。如下图的“Create Implementation”,就很方便。 但是每次都要点鼠标,是不是太烦呢? 如果能设置一个快捷键就好了...
分类:
其他好文 时间:
2015-06-29 13:13:01
阅读次数:
125