小编Pre*_*van的帖子

iOS应用更新通知

iOS应用更新机制如何运作?如何告诉用户Appstore上的应用程序已更新?我是否必须在代码中编写功能以显示更新弹出窗口,或者由Appstore处理以向用户显示已更新应用程序的通知.苹果为此提供了哪些文件?

itunes app-store ios provisioning-profile

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

库未加载

我在我的应用程序中添加了Social.framework,就像我用来添加其他框架一样.我已经下载了xcode 4.5和iOS 6.但是我的应用程序仅在设备上崩溃并出现以下错误.它在模拟器上工作正常.

    dyld: Library not loaded: /System/Library/Frameworks/Social.framework/Social
  Referenced from: /var/mobile/Applications/FC88291D-2052-45D6-A7BB-65CE340F07BF/Uploading       Image.app/Uploading Image
 Reason: image not found
Run Code Online (Sandbox Code Playgroud)

cocoa-touch objective-c ios

21
推荐指数
2
解决办法
8736
查看次数

在appstore中支持应用提交的网址

在Appstore中提交应用程序是否需要支持URL?我注册为个人开发者,我没有支持网址的网页.我能做什么?

app-store ios

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

从iOS中的数据数组创建csv文件

我想将数据从sql文件写入csv文件.我已从数组中的sql文件中收集了所有数据并使用for循环我将数据附加到.csv文件中.但它似乎只在一行中显示数据,但它没有转到新行来创建新行.我用这个作为参考.这是我的代码:

-(NSString *)dataFilePath { 
    NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); 
    NSString *documentsDirectory = [paths objectAtIndex:0]; 
    return [documentsDirectory stringByAppendingPathComponent:@"myfile.csv"];
}

- (IBAction)saveAsFileAction:(id)sender {    
    if (![[NSFileManager defaultManager] fileExistsAtPath:[self dataFilePath]]) {
        [[NSFileManager defaultManager] createFileAtPath: [self dataFilePath] contents:nil attributes:nil];
        NSLog(@"Route creato");        
    }

    NSString *writeString;    
    for (int i=0; i<[dataArray count]; i++) {        
        writeString = [NSString stringWithFormat:@"%@, %@, %@, %@, %0.2f,",[[dataArray objectAtIndex:i]dates],[[dataArray objectAtIndex:i] time],[[dataArray objectAtIndex:i] category],[[dataArray objectAtIndex:i]place],[[dataArray objectAtIndex:i] amount]];        
        NSLog(@"writeString :%@",writeString);        
        NSFileHandle *handle;
        handle = [NSFileHandle fileHandleForWritingAtPath: [self dataFilePath] ]; 
        //say to handle where's …
Run Code Online (Sandbox Code Playgroud)

csv cocoa-touch objective-c ipad ios

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

UITextView中的项目符号列表和编号列表

任何机构都可以告诉我如何将子弹列表和编号列表添加到UITextView中的选定文本.

cocoa-touch objective-c uitextview ipad

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

NSPredicate中的多个条件

如何使用多个条件NSPredicate

我正在使用它但在返回的数组中没有得到任何东西.

NSPredicate *placePredicate = [NSPredicate predicateWithFormat:@"place CONTAINS[cd] %@ AND category CONTAINS[cd] %@ AND ((dates >= %@) AND (dates <= %@)) AND ((amount >= %f) AND (amount <= %f))",placeTextField.text,selectedCategory,selectedFromDate,selectedToDate,[amountFromTextField.text floatValue],[amountToTextField.text floatValue]];

NSArray *placePredicateArray = [dataArray filteredArrayUsingPredicate:placePredicate];

NSLog(@"placePredicateArray %@", placePredicateArray);
Run Code Online (Sandbox Code Playgroud)

金额和类别有时可能为空.我应该如何构建NSPredicate

cocoa-touch objective-c nspredicate ipad ios

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

连续滚动UILabel就像选框一样

以下是我的代码,用于滚动UILabel水平,使其显示为选框效果.但是动画开始于标签位于中心并滚动直到它的宽度,并再次从中心滚动统计数据.我想要从左到右连续滚动字幕.任何身体都可以帮助我.

-(void)loadLabel{

    if (messageView) {
        [messageView removeFromSuperview];
    }

    NSString *theMessage = text;
    messageSize = [theMessage sizeWithFont:font];
    messageView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, messageSize.width, 916)]; //x,y,width,height
    [messageView setClipsToBounds:NO]; // With This you prevent the animation to be drawn outside the bounds.
    [self.view addSubview:messageView];
    lblTime = [[RRSGlowLabel alloc] initWithFrame:CGRectMake(0, 0, messageSize.width, 916)]; //x,y,width,height
    [lblTime setBackgroundColor:[UIColor yellowColor]];
    lblTime.font = font;
    [lblTime setText:theMessage];
    lblTime.glowOffset = CGSizeMake(0.0, 0.0);
    lblTime.glowAmount = 90.0;
    lblTime.glowColor = color;
    [lblTime setClipsToBounds:NO];
    [lblTime setTextColor:color];
    [lblTime setTextAlignment:UITextAlignmentLeft];
    lblTime.frame = messageView.bounds ; //x,y,width,height …
Run Code Online (Sandbox Code Playgroud)

cocoa-touch objective-c marquee uilabel ios

10
推荐指数
0
解决办法
2万
查看次数

iOS中的图像的CITemperatureAndTint

是否有CITemperatureAndTint的示例代码或示例?我已阅读其文档但我需要一些示例来实现它.

iphone cocoa-touch core-image ios cifilter

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

区分applicationDidEnterBackground和applicationWillTermimate

在我的应用程序中,当用户点击主页按钮时,我将数据保存在NSUserDefaults.应用程序在后台运行.当用户重新启动应用程序时,我使用该方法applicationWillEnterForeground显示已保存的数据.

但是,当用户双击主页按钮并通过在应用程序上选择减号退出应用程序时,我需要在相同的用户默认值中保存不同的数据.但是当我退出时applicationWillTerminate,有时会调用应用程序,有时则不会.

那么,我如何区分应用程序是最小化还是退出?

iphone cocoa-touch objective-c uiapplicationdelegate ios

7
推荐指数
2
解决办法
6354
查看次数

单个程序的捆绑标识符

我新开了99美元的账户作为个人iOS开发者.我有另一个帐户作为iOS开发人员作为公司.在公司帐户中,我将包标识符作为com.mycompanyname.appname给出,但我很困惑应该为单个程序提供包标识符.

cocoa-touch app-store ios provisioning-profile

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