小编Ton*_*ony的帖子

该插件无法在xcode 5.1上运行

我已将xcode更新到5.1版.而我的所有插件都无法正常工作.

我再次安装时没有看到任何错误日志.

如何检测安装处理的结果?

我正在使用

  • Alcatraz.xcplugin

  • CocoaPods.xcplugin

  • KSImageNamed.xcplugin

  • XAlign.xcplugin

我认为xcode 5.1存在一些问题,因为我的所有插件仍然适用于xcode 5.0.1

plugins xcode5.1

20
推荐指数
3
解决办法
8071
查看次数

FOR命令中的表达式(for(int i = 0; i <([arr count] -1); i ++){})

我有一个我无法理解的问题

NSArray *emptyArr = @[];
for (int i=0; i < ([emptyArr count]-1) ; i++) {
    NSLog(@"Did run for1");
}
Run Code Online (Sandbox Code Playgroud)

[emptyArr count]- 1是-1但我的应用程序仍然运行NSLog命令!

如果我使用int变量:

NSArray *emptyArr = @[];
int count = [emptyArr count]-1;
for (int i=0; i < count ; i++) {
    NSLog(@"Did run for1");
}
Run Code Online (Sandbox Code Playgroud)

然后我的应用程序不运行NSLog命令.

有人帮我请!

objective-c ios

6
推荐指数
1
解决办法
1497
查看次数

插件不适用于xcode 6

是的,我们有一个新的xcode版本 - xcode 6,所有旧的插件都不起作用.

我知道每个Xcode版本都有一个新的DVTPlugInCompatibilityUUID,这个问题将由插件作者修复.

但是DVTPlugInCompatibilityUUIDs只是一个文本,我们怎么能找到它?我们如何在不等人的情况下解决问题

更新

xcode 6.3.2:DVTPlugInCompatibilityUUIDs = E969541F-E6F9-4D25-8158-72DC3545A6C6

XCode 6.4(6E35b):DVTPlugInCompatibilityUUIDs = 7FDF5C7A-131F-4ABB-9EDC-8C5F8F0B8A90

XCode 7.0.b2(7A121I):DVTPlugInCompatibilityUUIDs = AABB7188-E14E-4433-AD3B-5CD791EAD9A3

plugins xcode6

6
推荐指数
1
解决办法
3391
查看次数

以横向模式打开UIImagePickerController

我想在我的应用程序中打开iphone保存的图像.我的应用程序在横向模式下工作 当我尝试使用presentModalViewController方法从iphone库加载所有保存的照片时,它将以纵向模式打开.我希望在横向模式下.这是代码:

picker = [[UIImagePickerController alloc] init];
picker.delegate = self;

picker.sourceType = UIImagePickerControllerSourceTypeSavedPhotosAlbum;
picker.allowsEditing = NO;
picker.navigationBarHidden = YES;
picker.wantsFullScreenLayout = YES;
[picker setNavigationBarHidden:TRUE];

[self presentModalViewController:picker animated:NO];
NSLog(@"%@", self.view.subviews);
[picker release];  
Run Code Online (Sandbox Code Playgroud)

任何人都可以帮助我..提前谢谢.

iphone ios

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

使用日语键盘时不会调用 UIKeyInput

我有一个继承自UIView并符合UIKeyInput * .h * 的类

@interface UIKeyInputExampleView : UIView  <UIKeyInput>{
    NSMutableString *textStore;
}

@property (nonatomic, retain) NSMutableString *textStore;

@end
Run Code Online (Sandbox Code Playgroud)

.m

@implementation UIKeyInputExampleView

@synthesize textStore;

- (id)initWithFrame:(CGRect)frame {
    if ((self = [super initWithFrame:frame])) {
        // Initialization code
        self.textStore = [NSMutableString string];
        [self.textStore appendString:@"Touch screen to edit."];

        self.backgroundColor = [UIColor whiteColor];
    }
    return self;
}

- (void)dealloc {
    [textStore dealloc];
    [super dealloc];
}

#pragma mark -
#pragma mark Respond to touch and become first responder.

- (BOOL)canBecomeFirstResponder { return …
Run Code Online (Sandbox Code Playgroud)

ios

3
推荐指数
1
解决办法
1243
查看次数

标签 统计

ios ×3

plugins ×2

iphone ×1

objective-c ×1

xcode5.1 ×1

xcode6 ×1