抽屉效果功能实现
一、.h文件
@interfaceHMDrawViewController:UIViewController@property(nonatomic,weak,readonly)UIView*mainView;@property(nonatomic,weak,readonly)UIView*leftView;@property(nonatomic,weak,readonly)UIView*rightView;@end
二、.m文件
@in..
分类:
移动开发 时间:
2014-12-03 02:00:45
阅读次数:
281
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace nange_1{ class A { readonly int Amyint_1 = 3...
分类:
其他好文 时间:
2014-11-30 23:06:06
阅读次数:
314
static class SqlHelper { public static readonly string connstr = ConfigurationManager.ConnectionStrings["connstr"].ConnectionString; ...
分类:
数据库 时间:
2014-11-30 00:12:54
阅读次数:
246
public class Singleton { private static Singleton _instance; private static readonly object syn = new object(); private Singl...
iOS面试题总原文地址:iOS面试题总作者:唯一的弟子1.简述OC中内存管理机制。与retain配对使用的方法是dealloc还是release,为什么?需要与alloc配对使用的方法是dealloc还是release,为什么?readwrite,readonly,assign,retain,cop...
分类:
移动开发 时间:
2014-11-27 20:17:18
阅读次数:
221
Introduction Value resolution strategy The magic behind it How to create a DepdencyProperty Readonly DependencyProperties Attached DependencyPropertie...
分类:
其他好文 时间:
2014-11-27 20:06:33
阅读次数:
370
我们先看一下使用抽象类实现观察者模式的类图代码如下:发布者(主题)类 public class Subject { private readonly List observers = new List(); public void Attach(Observer o...
分类:
其他好文 时间:
2014-11-26 18:32:47
阅读次数:
173
The readonly keyword is a modifier that you can use on fields. When a field declaration includes a
readonly modifier, assignments to the fields introduced by the declaration can only occur as part of...
1、饿汉式单例模式
// 饿汉式单例模式 - by Chimomo
namespace CSharpLearning
{
public sealed class Singleton
{
private static readonly Singleton instance = new Singleton();
private Singleton() ...
分类:
编程语言 时间:
2014-11-25 14:29:50
阅读次数:
213
IOS中Retain和Copy的区别1 ,可读性: readonly 、 readwrite@property(readwrite,....) valueType value;这个属性是变量的默认属性,就是如果你 (readwrite and readonly 都没有使用,那么你的变量就是 read...
分类:
移动开发 时间:
2014-11-24 22:26:40
阅读次数:
272