小编Yas*_*BES的帖子

如何在XCode中创建新的C++项目?

我不确定如何使用XCode 4.6 创建 C++项目:

试图创建一个新项目的形象

c++ xcode xcode4.6

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

核心数据保存UIImage

如果我保存图像,我在这个数据库中有一个核心数据,那么如何保存只需要URL的图像...请举例

iphone core-data objective-c

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

弹性搜索:字段上期望的数字类型

我需要计算总和的所有字段都为INT,但是当我发出请求时出现此错误:

{
    "error": {
        "root_cause": [
            {
                "type": "illegal_argument_exception",
                "reason": "Expected numeric type on field [mlf16_txservnum], but got [string]"
            }
        ],
        "type": "search_phase_execution_exception",
        "reason": "all shards failed",
        "phase": "query",
        "grouped": true,
        "failed_shards": [
            {
                "shard": 0,
                "index": "bpa_stag_v3",
                "node": "zzsbvdwmQ0-d0Ca_b3w0uQ",
                "reason": {
                    "type": "illegal_argument_exception",
                    "reason": "Expected numeric type on field [mlf16_txservnum], but got [string]"
                }
            }
        ]
    },
    "status": 400
}
Run Code Online (Sandbox Code Playgroud)

这里的要求:

{
  "size" : 0,
  "query" : {
    "bool" : {
      "filter" : [ {
        "term" : {
          "mlf16_cptfou_six" …
Run Code Online (Sandbox Code Playgroud)

elasticsearch

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

单身人士的问题

我有单身人士

 @interface CartesManager : NSObject {


NSMutableArray *carteMan ; 
NSInteger indexCarteCourante ;
NSInteger numImage ; 
BOOL isEditable ;

}
Run Code Online (Sandbox Code Playgroud)

我想更改数组"Carteman"的最后一个单元格的内容.我拿了数组的最后一个框.

-(void)DoneButton :(id)sender {

int Valeur ; 

Valeur = ([[CartesManager sharedInstance].carteMan count] -1 );

Carte *uneCarte= [[[CartesManager sharedInstance].carteMan]objectAtIndex:Valeur]; //Expected ":" before ";" token 


 switch (indexsectioncurrent) {
     case 0:
         uneCarte.titre = textField.text ;
         break;
     case 1:
         uneCarte.nom = textField.text ; 
         break;
    case 2:
         uneCarte.prenom = textField.text ; 
        break;
    case 3:
         uneCarte.adresse = textField.text ; 
        break;
    case 4:
         uneCarte.phone = textField.text ; 
        break; …
Run Code Online (Sandbox Code Playgroud)

iphone objective-c

0
推荐指数
1
解决办法
60
查看次数

tableView中的问题

我的问题 :

[tableView reloadSections:[NSIndexSet indexSetWithIndex:[NSIndexPath indexPathForRow:1 inSection:currentIndex]] withRowAnimation:YES];  //passing argument 1 of indexSetWithindex makes integer from pointer without a cast   
Run Code Online (Sandbox Code Playgroud)
 - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
// Navigation logic may go here. Create and push another view controller.
if (!self.editing) {


    if(indexPath.section%2!=0)
    {

        ConsultationCarteV *consultationCarteV = [[ConsultationCarteV alloc] initWithNibName:@"ConsultationCarteV" bundle:nil];
        // ...
        // Pass the selected object to the new view controller.
        [CartesManager sharedInstance].indexCarteCourante=indexPath.row ;
        [CartesManager sharedInstance].isEditable = NO ; 

        [self.navigationController pushViewController:consultationCarteV animated:YES];
        [consultationCarteV release];


    }
     else {

       currentIndex = …
Run Code Online (Sandbox Code Playgroud)

iphone objective-c

0
推荐指数
1
解决办法
1229
查看次数

标签 统计

iphone ×3

objective-c ×3

c++ ×1

core-data ×1

elasticsearch ×1

xcode ×1

xcode4.6 ×1