必须至少有三个步骤:
一,实现协议
二,建立关系
三,设置缩放的范围
具体见代码:
#import "ViewController.h"
@interface ViewController () //一定要先遵守这个协议
@property (weak, nonatomic) IBOutlet UIScrollView *ScrollView;
@property (weak, no...
分类:
移动开发 时间:
2015-04-11 17:58:45
阅读次数:
139
interface IMyList{ // O(1) // Add an item at the beginning of the list. void AddFirst(T item); // O(1) // Add an item at the end of th...
#import?"LHViewController.h"
#define?angelToRandian(x)??((x)/180.0*M_PI)
@interface?LHViewController?()
@property?(strong,?nonatomic)?IBOutlet?UIImageView?*imageView;
@end
@implementat...
分类:
移动开发 时间:
2015-04-11 14:58:06
阅读次数:
229
#import "ViewController.h"@interface ViewController ()@property (strong, nonatomic) IBOutlet UITextField *textfield;@end@implementation ViewController...
分类:
其他好文 时间:
2015-04-11 13:09:44
阅读次数:
149
UIView 属性@interface UIView : UIResponder// YES:能够跟用户进行交互
@property(nonatomic,getter=isUserInteractionEnabled) BOOL userInteractionEnabled;...
分类:
其他好文 时间:
2015-04-11 10:23:22
阅读次数:
312
//
// ViewController.m
// sqlitedemo
//
// Created by lam_TT on 15-4-11.
// Copyright (c) 2015年 lam_TT. All rights reserved.
//
#import "ViewController.h"
#import
@interface ViewController () {
...
分类:
数据库 时间:
2015-04-11 08:59:37
阅读次数:
190
静态路由协议就是静态路由,要把网络中每一条路由手动配置,下面诚恺科技小编就以华为路由器为例,同大家一起来看看IPv4静态路由、NQAforIPv4静态路由、IPv6静态路由的详细配置方法,供大家参考。一、配置IPv4静态路由基本功能示例组网需求路由器各接口及主机的IP地址和掩码如..
分类:
其他好文 时间:
2015-04-11 06:43:14
阅读次数:
735
自己手动实现一下spring的配置文件注入原理。具体步骤如下:
1、新建一个IUserService接口,里面定义一个添加用户的方法。源码如下:public interface IUserService {
public void saveUser();
}2、编写UserServiceImpl的实现类,具体如下:public class UserServiceImpl impleme...
分类:
编程语言 时间:
2015-04-10 22:36:45
阅读次数:
181
一、AIDL是什么?
AIDL(Android Interface Definition Language)是Android接口定义语言,用于进程间的通信(IPC),它能实现让多个应用程序组件之间与某个Service进行跨进程通信,从而实现多个应用程序共享一个服务的功能。
二、为什么要通过AIDL进行IPC通信?
系统为一个应用分配一个进程,进程运行在自己的内存空间,一个进程不能直接访问另外...
分类:
其他好文 时间:
2015-04-10 18:11:25
阅读次数:
519
1,
public interface HandlerMethodReturnValueHandler {
/**
* Whether the given {@linkplain MethodParameter method return type} is
* supported by this handler.
*
* @param returnType the metho...
分类:
编程语言 时间:
2015-04-10 18:05:28
阅读次数:
322