小编Kar*_*pez的帖子

如何在App Store中更改卖家名称?

继承人这个问题,我17岁,我的叔叔为我发布我的应用程序创建了一个帐户,因为我对在iOS中开发非常感兴趣,显然这个帐户是以他的名字命名的,因为起初我试图以我的名字用他的信用卡支付一个卡和我被拒绝,因为名字没有匹配所以我们做了他的一个.

我最近发布的是他的名字(卖家名字),版权以我的名义,但卖家不要,我想知道是否有可能为我改变它或者可能不是我的名字,只是一个昵称....如果不,我在哪里可以发送电子邮件或其他东西,请你可以想象当你付出所有努力时,卖家的名字不是你的,这是多么令人沮丧.....非常感谢!!

itunesconnect app-store ios

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

CDN:运行“pod install”时无法在某些 React Native 项目中下载主干 URL?

我有这个反应本机项目,我在多台计算机上工作,在我的 MacBook 中一切正常,当我在运行“npm install”后运行“pod install”时,pods 项目成功创建,另一方面,当我在我的桌面出现以下错误:

在此处输入图片说明

我试过为其他项目安装 pod,一切正常,尤其是这个项目的问题。

更新:

感谢您的评论,让您知道:

运行后:

pod repo remove trunk
pod install
Run Code Online (Sandbox Code Playgroud)

这就是我得到的:

在此处输入图片说明

这是我的 package.json:

{
  "name": "aksystems",
  "version": "3.9.8",
  "description": "",
  "author": "",
  "private": true,
  "scripts": {
    "start": "react-native start",
    "test": "jest",
    "lint": "eslint .",
    "ios": "cd ios/ && rm -rf Pods/ && rm -rf Podfile.lock && pod install && cd ../ && react-native run-ios",
    "android": "cd android/ && ./gradlew clean && cd ../ && react-native run-android",
    "build:ios": "node node_modules/react-native/local-cli/cli.js bundle --entry-file='index.js' --bundle-output='./ios/mstore/main.jsbundle' --dev=false …
Run Code Online (Sandbox Code Playgroud)

cdn ios cocoapods react-native

9
推荐指数
2
解决办法
7739
查看次数

发送推送时NoClassDefFoundError:android.support.v4.app?

我使用PushBots来管理我的应用程序的推送通知,我一直在使用这个惊人的平台用于许多应用程序,这是我第一次有这样的问题.

有时,当我启动应用程序时,我收到此错误,但总是在接收推送时(打开或打开应用程序).

07-12 01:20:00.844: E/AndroidRuntime(12140): FATAL EXCEPTION: IntentService[GCMIntentService-326*****5*9-1]
07-12 01:20:00.844: E/AndroidRuntime(12140): Process: com.karlol.mo***, PID: 12140
07-12 01:20:00.844: E/AndroidRuntime(12140): java.lang.NoClassDefFoundError: android.support.v4.app.NotificationManagerCompat

> //This is just the beginning of the log, there's more with some
> Pushbots handler info and stuff.... Let me know if I need to post it,
> its a lot.
Run Code Online (Sandbox Code Playgroud)

我很确定这是关于android支持v4,这是我当前的构建路径:

构建路径

*有时当我取消选中私人图书馆清理并再次重新检查此选项时,应用程序可以正常工作(但通知时却不幸运).

支持v4 jar在libs文件夹中,路由是正确的(MyApp/libs)

我即将发布更新,我的应用程序已经与pushbots服务器(已注册的设备和所有)一起工作/运行所以我想解决这个问题以释放我的更新.谢谢.

noclassdeffounderror android-support-library pushbots

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

无法从IP服务器检索JSONArray,但我可以从普通服务器?

我将服务从普通域DNS服务器迁移到仅IP服务器,这为我的应用程序提供了json服务,问题是我无法在新URL中使用以下代码检索JSONArray:

 protected JSONArray doInBackground(String... arg0) {
                String reponse;

                try{
                    HttpClient httpclient = new DefaultHttpClient();
                    HttpPost httppost = new HttpPost(url);
                    HttpResponse responce = httpclient.execute(httppost);
                    HttpEntity httpEntity = responce.getEntity();
                    reponse = EntityUtils.toString(httpEntity);
                    return new JSONArray(reponse);
                    //With the oldURL I printed the JSON as a string and everithing OK but the new URL returns a null string of JSON
                }catch(Exception e){
                    e.printStackTrace();

                }


                return null;
            }

String newurlexample = "http://111.22.333.44:1234/FOLD/blablabla";

String oldurl = "https:/example.com/FOLD/file.json";
Run Code Online (Sandbox Code Playgroud)

我得到以下日志:

    07-13 17:47:02.142: W/System.err(18824): org.json.JSONException: Value Method of type …
Run Code Online (Sandbox Code Playgroud)

android json httpclient

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

如何在PHP中解码TripleDESCryptoService字符串?

以下代码在VB中解密字符串:

Public Function Desencriptar(ByVal Input As String) As String

        Dim IV() As Byte = ASCIIEncoding.ASCII.GetBytes("abcdefgh") 
        Dim EncryptionKey() As Byte = Convert.FromBase64String("hereGoesTheKey") 
        Dim buffer() As Byte = Convert.FromBase64String(Input)
        Dim des As TripleDESCryptoServiceProvider = New TripleDESCryptoServiceProvider
        des.Key = EncryptionKey
        des.IV = IV
        Return Encoding.UTF8.GetString(des.CreateDecryptor().TransformFinalBlock(buffer, 0, buffer.Length()))

    End Function
Run Code Online (Sandbox Code Playgroud)

我想知道如何将此过程复制到移动应用程序服务的PHP脚本中.谢谢.

php vb.net tripledes

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

如何正确管理内存堆栈和视图控制器?

我真的很挣扎这个基本的iOS编程的东西,但我无法弄清楚发生了什么以及如何解决它.

我有我的主Login控制器,用于检测用户何时登录,如果auth成功,则显示下一个控制器:

@interface LoginViewController (){

    //Main root instance
    RootViewController *mainPlatformRootControler;
}

-(void)loggedInActionWithToken:(NSString *)token anonymous:(BOOL)isAnon{
    NSLog(@"User loged in.");

    mainPlatformRootControler = [self.storyboard instantiateViewControllerWithIdentifier:@"rootViewCOntrollerStoryIdentifier"];

    [self presentViewController:mainPlatformRootControler animated:YES completion:^{

    }];

}
Run Code Online (Sandbox Code Playgroud)

这很好,没问题.

我的麻烦是处理注销.如何完全删除RootViewController实例并显示一个新实例?

我可以看到RootViewController实例正在堆叠,因为我有多个观察者,并且在注销后然后登录它们被多次调用(多次我退出并重新进入).

我试过以下但没有成功:

首先检测RootViewController中的注销并解除:

[self dismissViewControllerAnimated:YES completion:^{
                [[NSNotificationCenter defaultCenter] postNotificationName:@"shouldLogOut" object:nil];

            }];
Run Code Online (Sandbox Code Playgroud)

然后在LoginViewController中:

-(void)shouldLogOut:(NSNotification *) not{
    NSLog(@"No user signed in");
    mainPlatformRootControler = NULL;
    mainPlatformRootControler = nil;
}
Run Code Online (Sandbox Code Playgroud)

那我怎么办呢?我知道它是一个基本的内存处理器,但我只是不知道如何?

memory-management objective-c viewcontroller ios

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

是否可以从JSON文件生成SQL数据库?

我有一个JSON格式的数据库,最初是从exel文件生成的,但是我希望对我的数据库进行现代化并将其导出到MySQl数据库中.这是JSON结构:

[
         {
            "NOMBRE": "TEST",
            "ESPECIALIDAD": "TEST",
            "ESPECIALIDAD2": "TEST PEDIATRICA",
            "ESPECIALIDAD3": "",
            "CEL": "2222009374947478474777",
           etc.....
        }, {
            "NOMBRE": "TEST",
            etc.....
        }
]
Run Code Online (Sandbox Code Playgroud)

如果这不可能或不困难,那么直接将exel文件导出到MySQL中是一个更好的选择吗?

mysql database json

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

目标C中Swift的.map的等价物?

说我有 NSArray *x = @[@1, @2, @3, @4];

现在说我想要一个类似的数组 @[@2, @4, @6, @8]

在好的斯威夫特,我可以这样做:

xDoubled = x.map({($0) * 2})
Run Code Online (Sandbox Code Playgroud)

谁能告诉我如何在Objective-C中做到这一点而不做 -

NSMutableArray *xDoubled = [NSMutableArray new];
for (NSInteger xVal in x) {
    [xDoubled addObject:xVal * 2];
}
Run Code Online (Sandbox Code Playgroud)

dictionary objective-c swift

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

可达性可达和无法到达的块被多次调用?

我使用Reachability来检查我的应用程序的网络状态,除了在iOS 9.0.1或更高版本中reachableBlock并且unreachableBlock被调用两次之外,正常工作正常,这让我遇到了大麻烦.

这只发生在iOS 9.0.1和iOS 9.1 Beta中.

以下是我的代码示例:

-(void)checkServerConnection{
//This nslog is to check the method is called only once.
    NSLog(@"Check Server Connection");

    Reachability* reach = [Reachability reachabilityWithHostname:@"www.google.com"];
    [reach startNotifier];
    reach.reachableBlock = ^(Reachability*reach)
    {
//This NSLOG is called twice
        NSLog(@"Reachability reachable block");
        dispatch_async(dispatch_get_main_queue(), ^{
//This NSLOG is called twice
            NSLog(@"REACHABLE!");     
        });
    };

    reach.unreachableBlock = ^(Reachability*reach)
    {
//Same story for this one..
        NSLog(@"UNREACHABLE!");
}
}
Run Code Online (Sandbox Code Playgroud)

如果有人解决了这个问题,请告诉我如何解决.

objective-c reachability ios

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

如何在UITableViewCellEditingStyleDelete时自定义删除按钮?

我想改变按钮的颜色和文字,UITableViewCellEditingStyleDelete我怎么能这样做?这是我如何调用删除单元格的方法:)谢谢!

(void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath{
    if(editingStyle == UITableViewCellEditingStyleDelete){
        [self.tasks removeObjectAtIndex:indexPath.row];
        NSUserDefaults *userDefaults = [NSUserDefaults standardUserDefaults];
        [userDefaults setObject:self.tasks forKey:@"tasks"];
        [tableView beginUpdates];
        [tableView deleteRowsAtIndexPaths:@[indexPath] withRowAnimation:UITableViewRowAnimationRight];
        [tableView endUpdates];
    }
}
Run Code Online (Sandbox Code Playgroud)

uitableview ios

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

我无法在控制器中接收ActionLink参数?

我在C#MVC .Net Web项目中工作,我使用带参数的ActionLink,但我无法将其读入Controller.

ActionLink的:

@model IEnumerable<FINAL.Models.Medico>

@foreach (var item in Model) 
{
    @Html.ActionLink("Eliminar", "DeleteMedico", new { id = item.NOMBRE.ToString() })
}
Run Code Online (Sandbox Code Playgroud)

以下是我试图阅读的内容:

public ActionResult DeleteMedico(String elmedico) 
{
    //This WRITE is returning null. :(
    System.Diagnostics.Debug.WriteLine("ELMEDICO:" + elmedico);
    return View();    
}
Run Code Online (Sandbox Code Playgroud)

我是MVC .NET开发的新手,所以我需要你的帮助.

谢谢.

c# asp.net-mvc html.actionlink

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

本地通知声音没有播放?

我对本地通知有这个问题,他们没有播放声音.我测试了默认的一个和自定义的那个显然是我想玩但没有!我看了很多人都面临这个问题,但他们的解决方案都没有对我有用.

UILocalNotification *local

- (IBAction)Dateaction:(id)sender {

    local = [[UILocalNotification alloc]init];
    local.timeZone = [NSTimeZone defaultTimeZone];
    local.alertBody = [NSString stringWithFormat:@"%@ Recuerda que tienes que: %@", [[NSUserDefaults standardUserDefaults] objectForKey:@"user"], [[NSUserDefaults standardUserDefaults] objectForKey:@"selected"]];
    local.fireDate = [self.DatePicker date];
   /* if ([[self.userdefaults objectForKey:@"sound"]isEqualToString:@"sound1"]) {
        local.soundName = @"sound1.caf";
    }else if([[self.userdefaults objectForKey:@"sound"]isEqualToString:@"sound2"]){
        local.soundName = @"sound2.caf";
    }else if([[self.userdefaults objectForKey:@"sound"]isEqualToString:@"sound1"]){
        local.soundName = @"sound3.caf";
    }else{
        local.soundName = @"sound1.caf";
    }*/
    local.soundName = UILocalNotificationDefaultSoundName;


}

- (IBAction)switchChanged:(id)sender {
if(self.NotSwith.isOn == YES){
        [[UIApplication sharedApplication] scheduleLocalNotification:local];


       }
}
Run Code Online (Sandbox Code Playgroud)

audio objective-c ios uilocalnotification

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