小编Meh*_*nki的帖子

UUIDString的identifierForVendor返回null

我在我的iPhone应用程序中实现了推送通知,并且我在应用程序中使用了以下代码进行设备注册.

[[[UIDevice currentDevice] identifierForVendor] UUIDString];
Run Code Online (Sandbox Code Playgroud)

上面的代码在大多数设备中运行良好.然而,最近在iOS 7.1的一些iPhone 5s设备中它返回null并且由于这个应用程序崩溃.

push-notification apple-push-notifications iphone-5 ios7

8
推荐指数
2
解决办法
3675
查看次数

启动时应用程序崩溃

我的应用程序运行得非常好,突然之间我现在也开始使用iOS 8和以前的操作系统.

崩溃日志如下所示:

iPhone kernel[0] <Notice>: xpcproxy[566] Container: /private/var/mobile/Containers/Data/Application/xxxxxx-xxxx-xxxxx-xxxxxxxx (sandbox)

iPhone ReportCrash[567] <Error>: task_set_exception_ports(B07, 400, D03, 0, 0) failed with error (4: (os/kern) invalid argument)

iPhone ReportCrash[567] <Notice>: ReportCrash acting against PID 566

iPhone ReportCrash[567] <Notice>: Formulating crash report for process app_name[566]

iPhone locationd[63] <Notice>: Gesture EnabledForTopCLient: 0, EnabledInDaemonSettings: 0

iPhone com.apple.xpc.launchd[1] (UIKitApplication:com.xxxxx[0xc36c][566]) <Notice>: Service exited due to signal: Trace/BPT trap: 5

iPhone SpringBoard[43] <Warning>: Application 'UIKitApplication:com.xxxxx[0xc36c]' crashed.

iPhone assertiond[57] <Warning>: Could not set priority of <BKNewProcess: 0x16624ab0; com.xxxxx; pid: …

iphone crash startup ios ios8

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

标记人们喜欢instagram

我正在创建一个应用程序,用户可以发布像Instagram这样的Feed(图像/视频).现在,我需要像Instagram一样克服Tagging Peoples的功能.

例如: 用户可以在制作新帖子之前将人们标记为照片,并且一旦在最近的Feed列表中可用,任何人都可以点击照片并查看哪些用该照片标记.

有没有有效而简单的方法来实现这个东西?

任何评论或链接进一步推荐肯定会有所帮助.

tags image objective-c ios instagram

5
推荐指数
0
解决办法
234
查看次数

如何在AVAudioPlayer中循环播放多个音频文件?

我想通过循环播放多个文件.
我在下面写了代码..
请帮帮我!! !!

soundList = [[NSArray alloc] initWithObjects:@"mySong1.mp3",@"mySong2.mp3",@"mySong3.mp3",@"mySong4.mp3",@"mySong5.mp3",@"mySong6.mp3",@"mySong7.mp3",@"mySong8.mp3",@"mySong9.mp3", nil];
for (i=0; i<=([soundList count] - 1); ) {                
    while(i<[soundList count]){
        NSLog(@"File is : %@",[soundList objectAtIndex:i]);
        mediaPlayer = [[AVAudioPlayer alloc] initWithContentsOfURL:[[NSURL alloc] initFileURLWithPath:[[NSBundle mainBundle] pathForResource:[soundList objectAtIndex:i] ofType:nil]] error:&error];
        [mediaPlayer setDelegate:self];
        self.lblCurrentSongName.text = [soundList objectAtIndex:i];
        [mediaPlayer prepareToPlay];
        i++;
    }
}
Run Code Online (Sandbox Code Playgroud)

请给我建议.!!

iphone loops avaudioplayer ios6

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

需要获得20多个区域监视通知

我正在开发一个应用程序,用户可以在其中设置多个位置。当用户获得Enter或离开特定位置边界时,我成功显示通知。

现在,有些情况下我需要为所有保存的位置提供监视,并且可能有数百个甚至更多。我在Apple论坛上读过很多文章,其中许多iOS设备仅允许20个区域监视。

在此处输入图片说明

我已经开发了我的代码以超出这种情况。我已经设置locationManager.distanceFilter = 200; 当我获得位置更新时。首先,我已停止所有区域监视,并按最近位置的条件停止运行,然后再次启动20个已保存位置的区域监视。

我认为上述解决方案可能会导致在停止并再次重新启动区域监视时丢失任何已保存的位置。因此,请提供给我其他更好的解决方案,以解决仅20条有关“区域监视”问题的通知。

祝你今天愉快 。!!..

cllocationmanager ios region-monitoring clcircularregion

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