小编sco*_*133的帖子

定义没有基类的Objective-C类 - 编译器警告

我使用以下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)

objective-c nsinvocation ios

13
推荐指数
1
解决办法
5207
查看次数

UIButButtonItem用UIButton作为CustomView - 来自UIButton,如何访问它的UIBarButtonItem?

我有一个UIBarButtonItemUIButton自定义视图.

它上面UIButton有一个addTarget:action:.在动作中我提出了一个弹出窗口.我现在正在从我想要呈现的sender.frame(UIButton的框架)中呈现UIBarButtonItem.

我如何可以访问UIBarButtonItemUIButton

objective-c uibutton uibarbuttonitem ios

7
推荐指数
2
解决办法
1万
查看次数

如何允许Beta Tester在没有物理访问iPad的情况下运行我的iPad应用程序

我正在尝试将我的应用程序本地化,并希望允许某人运行我的应用程序,以便他们可以查看本地化是否正常工作.我没有物理访问他们的iPad.有没有办法方便这个?你能带我去一些文件来实现吗?

谢谢!

beta-testing ipad ios

4
推荐指数
1
解决办法
4537
查看次数