继承人这个问题,我17岁,我的叔叔为我发布我的应用程序创建了一个帐户,因为我对在iOS中开发非常感兴趣,显然这个帐户是以他的名字命名的,因为起初我试图以我的名字用他的信用卡支付一个卡和我被拒绝,因为名字没有匹配所以我们做了他的一个.
我最近发布的是他的名字(卖家名字),版权以我的名义,但卖家不要,我想知道是否有可能为我改变它或者可能不是我的名字,只是一个昵称....如果不,我在哪里可以发送电子邮件或其他东西,请你可以想象当你付出所有努力时,卖家的名字不是你的,这是多么令人沮丧.....非常感谢!!
我有这个反应本机项目,我在多台计算机上工作,在我的 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) 我使用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服务器(已注册的设备和所有)一起工作/运行所以我想解决这个问题以释放我的更新.谢谢.
我将服务从普通域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) 以下代码在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脚本中.谢谢.
我真的很挣扎这个基本的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)
那我怎么办呢?我知道它是一个基本的内存处理器,但我只是不知道如何?
我有一个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中是一个更好的选择吗?
说我有 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)
?
我使用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)
如果有人解决了这个问题,请告诉我如何解决.
我想改变按钮的颜色和文字,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) 我在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开发的新手,所以我需要你的帮助.
谢谢.
我对本地通知有这个问题,他们没有播放声音.我测试了默认的一个和自定义的那个显然是我想玩但没有!我看了很多人都面临这个问题,但他们的解决方案都没有对我有用.
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) ios ×6
objective-c ×4
json ×2
android ×1
app-store ×1
asp.net-mvc ×1
audio ×1
c# ×1
cdn ×1
cocoapods ×1
database ×1
dictionary ×1
httpclient ×1
mysql ×1
php ×1
pushbots ×1
reachability ×1
react-native ×1
swift ×1
tripledes ×1
uitableview ×1
vb.net ×1