我使用以下NSInvocation代码形式Matt Gallagher作为我的Undo/Redo代码.虽然使用最新版本的xCode但我没有收到警告:NSInvocation(ForwardedConstruction).m:28:12:定义了'InvocationProxy'类而没有指定基类
该守则运作良好,但我团队中的其他人(我也是)也不喜欢看警告.我希望Class尽可能的修饰,所以我不想要NSObject中的所有方法.
欢迎任何建议!
谢谢!
NSInvocation的(ForwardedConstruction).H
//
// NSInvocation(ForwardedConstruction).h
//
// Created by Matt Gallagher on 19/03/07.
// Copyright 2007 Matt Gallagher. All rights reserved.
//
// Permission is given to use this source code file without charge in any
// project, commercial or otherwise, entirely at your risk, with the condition
// that any redistribution (in part or whole) of source code must retain
// this copyright and permission notice. Attribution in compiled projects is …Run Code Online (Sandbox Code Playgroud) 我有一个UIBarButtonItem以UIButton自定义视图.
它上面UIButton有一个addTarget:action:.在动作中我提出了一个弹出窗口.我现在正在从我想要呈现的sender.frame(UIButton的框架)中呈现UIBarButtonItem.
我如何可以访问UIBarButtonItem从UIButton?
我正在尝试将我的应用程序本地化,并希望允许某人运行我的应用程序,以便他们可以查看本地化是否正常工作.我没有物理访问他们的iPad.有没有办法方便这个?你能带我去一些文件来实现吗?
谢谢!