http://news.cnblogs.com/n/82363/网站开发人员应该知道的61件事原文网址:http://stackoverflow.com/questions/72394译者:阮一峰一、界面和用户体验(Interface and User Experience)1.1知道各大浏览器执行...
分类:
Web程序 时间:
2014-12-04 17:45:48
阅读次数:
230
#import "ViewController.h"@interface ViewController ()@end@implementation ViewController- (void)viewDidLoad { [super viewDidLoad]; NSLog(@"s...
分类:
其他好文 时间:
2014-12-04 17:13:35
阅读次数:
263
多态:
可以理解为事物存在的多种体现形态。
人有什么形态,男人、女人。
多态是子类对象在做着变化。
猫 x = new 猫 ();
动物 x = new 猫();
这就是一个对象具有多种形态。X是猫类型,同时也是“动物”类型。
类型提升 : 把猫提升为动物类型。向上转型
1.多态的体现
父类的引用指向了自己的子类对象
父类的引用也可以接收自己的子类对象
...
分类:
编程语言 时间:
2014-12-04 15:44:57
阅读次数:
141
自从Xcode6升级后,就创建不了空模板了接下来就需要通过简单地几步配置把工程配置成我们熟悉的空模板;
1.首先创建Single View Application
2.然后找到工程目录-》Supporting Files ——》找到 info.plist ——》找到里面的加载页面项 Launch screen interface file.. 把属性对应的Value值...
分类:
移动开发 时间:
2014-12-04 12:19:57
阅读次数:
194
先自定义一个UITabbarController,用于Storyboard中
再在MyTabbarController中实现protocol
@interface MyTabbarController : UITabBarController
@end再实现代理里面的方法
@implementation MyTabbarController
- (BOOL)tabBar...
分类:
移动开发 时间:
2014-12-04 12:11:40
阅读次数:
349
实现自己的Controller 平常定义的Controller都继承自Controller类,Controller类又继承ControllerBase,其最后又实现了IController接口 public interface IController { void Execute(RequestCo...
分类:
Web程序 时间:
2014-12-04 12:01:31
阅读次数:
146
AXI(Advanced eXtensible Interface)是一种总协议,该协议是ARM公司提出的AMBA(Advanced Microcontroller Bus Architecture)3.0协议中最重要的部分,是一种面向高性能、高带宽、低延迟的片内总线。它的地址/控制和数据相位是分离...
分类:
其他好文 时间:
2014-12-04 11:44:14
阅读次数:
319
#import @interface ZSDHelpCell : UITableViewCell@property (weak, nonatomic) IBOutlet UIImageView *selectImageView;@property(nonatomic,copy)NSString *q...
分类:
移动开发 时间:
2014-12-04 11:29:49
阅读次数:
140
在之前的项目中,我们编程都是直接写在一个main.m文件中。类的main()函数,@interface和@implementation部分都塞进一个文件。这种结构对于小程序和简便应用来说还可以。但是项目文件一多,规模一上去。这样就很不好,既不美观,代码也不好管理。 那么,接下来这篇博文,我们就...
分类:
其他好文 时间:
2014-12-04 00:51:54
阅读次数:
185
我们经常要在Unity中以各种方式搜索对象。比如按名字搜索、按tag、layer或者是查找名字为xxx开头的对象。本文是介绍以一种统一的接口来搜索对象。1、定义统一的搜索接口 ///
/// 游戏对象搜索接口
///
public interface IGameObjectFinder
{
///
/// 搜索...
分类:
编程语言 时间:
2014-12-03 23:26:44
阅读次数:
397