小编Nic*_*ick的帖子

导致此Objective-C编译错误的原因:程序中的Stray'\ 235'

#import "InstatwitViewController.h"

@implementation InstatwitViewController


- (NSInteger)numberOfComponentsInPickerView:(UIPickerView *) pickerView {
 return 2;
}

- (NSInteger)pickerView:(UIPickerView *) pickerViewnumberOfRowsInComponent :(NSInteger)component {

if (component == 0)
 return [activities count];
else
 return [feelings count]; 
}

/*
// The designated initializer. Override to perform setup that is required before the view is loaded.
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil {
    if ((self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil])) {
        // Custom initialization
    }
    return self;
}
*/

/*
// Implement loadView to create a view hierarchy programmatically, without using …
Run Code Online (Sandbox Code Playgroud)

iphone objective-c

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

标签 统计

iphone ×1

objective-c ×1