码迷,mamicode.com
首页 >  
搜索关键字:delegate    ( 2593个结果
Storyboards Tutorial 04
设计好后运行发现没有任何变化,是空白的。这是因为你的tableview相关的delegate方法还在。所以首先要屏蔽或者删除在PlayerDetailsViewController.m 如下的操作#pragma mark - Table view data source- (NSInteger)nu...
分类:其他好文   时间:2014-12-19 15:41:36    阅读次数:170
UIAlertController
你知道 UIAlertView、UIActionSheet (以及它们各自的 delegate protocols) 在 iOS 8 中已经被废弃了吗?这是真的。在你的代码中按住点击 UIAlertView 或者 UIActionSheet,你就会看到最上面的注释:1UIAlertViewisdep...
分类:其他好文   时间:2014-12-19 13:02:29    阅读次数:305
看看可爱c#中的delegate(委托)和event(事件)用法好不好
对自己最拿手的编程语言C#,我想对你说声对不起,因为我到现在为止才明白c#中的delegate和event是怎么用的,惭愧那。好了,那今天就趁月黑风高的夜晚简单来谈谈delegate和event的简单用法吧,希望能给初学者带来帮助。PS:别像我那样学了几年c#到头来都不知道delegate和even...
分类:Windows程序   时间:2014-12-19 12:03:37    阅读次数:231
谈C#中的Delegate
Delegate是Dotnet1.0的时候已经存在的特性了,但由于在实际工作中一直没有机会使用Delegate这个特性,所以一直没有对它作整理。这两天,我再度翻阅了一些关于Delegate的资料,并开始正式整理这个C#中著名的特性。本文将由浅入深的谈一下Delegate这个特性。
分类:Windows程序   时间:2014-12-19 11:49:20    阅读次数:285
iOS中修饰符assign与weak的区别
上次做项目的时候,因为将delegate声明成assign类型,导致了程序EXC_BAD_ACCESS异常。结果发现是assign与weak的最大区别 它们都是弱引用声明类型,最大的区别在那呢? 如果用weak声明的变量在栈中就会自动清空 如果用assign声明的变量在栈中可能不会自动赋值为nil,就会造成野指针错误!...
分类:移动开发   时间:2014-12-19 00:40:15    阅读次数:159
委托和事件的使用
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace delegatedemo {     public delegate void BoilDelegate(int temp);...
分类:其他好文   时间:2014-12-18 15:14:38    阅读次数:184
lamda 及匿名函数使用(from www.sysoft.cc)
namespace Lamda{ public delegate int GetNum(int a,int b);//定义具有返回值及参数的委托。 class Program { static void Main(string[] args) { ...
分类:其他好文   时间:2014-12-18 08:06:34    阅读次数:125
C#中Delegate
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace Ch1{ public delegate void ...
分类:Windows程序   时间:2014-12-18 00:05:09    阅读次数:316
[iOS基础控件 - 6.10.6] UIApplicationDelegate
A.概念1.移动app非常容易受到其他的系统、软件事件的干扰,如来电、锁屏2.app受到干扰的时候,UIApplication会通知delegate,来代理处理干扰事件3.delegate可以处理的事件(1)app声明周期(启动、关闭)(2)系统事件(来电)(3)紧急事件(内存警告)B.使用称为de...
分类:移动开发   时间:2014-12-17 23:56:47    阅读次数:229
观察者模式(observer)之委托(delegate) c#简单例子
观察者模式(observer)之委托(delegate) c#简单例子 几个要点:模式使目标与观察都之间的依赖关系达到松耦合、通知会自动传播 例子:玩家击中敌人后发生一系列变化:发后爆炸、敌人少1个.... namespace adapterpattern { public partial class observerDelegateForm : Form { ...
分类:Windows程序   时间:2014-12-17 22:39:15    阅读次数:244
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!