当iOS应用程序第一次启动时检测?

如何检测iOS应用第一次启动的时间?

代码签名错误在macOS高Sierra Xcode – 资源分叉,查找信息,或类似碎石不允许

已经尝试过: macOS Sierra,Xcode 8上的代码签名错误 请参阅图像显示错误 CodeSign /Users/gururajtallur/Library/Developer/Xcode/DerivedData/Flow-bkqjkvtmvjovpyepfjeyqmjpintj/Build/Products/Debug-iphoneos/Super\ Flow\ Flip.app cd "/Volumes/Development/Project/Top Best Games/19. Lets Flow/35/let's FLOW – source/proj.ios_mac" export CODESIGN_ALLOCATE=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin" Signing Identity: "iPhone Distribution: New Free Games (2CHN583K4J)" Provisioning Profile: "Super Flow Flipp AppStore" (c6c30d2a-1025-4a23-8d12-1863ff684a05) /usr/bin/codesign –force –sign E48B98966150110E55EAA9B149F731901A41B37F –entitlements /Users/gururajtallur/Library/Developer/Xcode/DerivedData/Flow-bkqjkvtmvjovpyepfjeyqmjpintj/Build/Intermediates/Flow.build/Debug-iphoneos/Super\ Flow\ Flip.build/Super\ Flow\ Flip.app.xcent –timestamp=none /Users/gururajtallur/Library/Developer/Xcode/DerivedData/Flow-bkqjkvtmvjovpyepfjeyqmjpintj/Build/Products/Debug-iphoneos/Super\ Flow\ Flip.app /Users/gururajtallur/Library/Developer/Xcode/DerivedData/Flow-bkqjkvtmvjovpyepfjeyqmjpintj/Build/Products/Debug-iphoneos/Super Flow Flip.app: resource […]

如何使用电话:与*(星号,星号)或#(哈希,磅)在iOS?

我试图用iPhone中的telurl发起一个电话。 它正确地调出呼叫对话框,但是当你点击呼叫时会退回到Safari浏览器。 <a href="tel:123*12">Test</a>

如何在iOS中处理不同的方向

补充 :你可以在github ios6rotations上访问这个项目 对不起,在iOS 6中提问有关屏幕旋转的问题,但这真的是一个痛苦的屁股..我仍然无法完全理解 – 由于某种原因,它在某些情况下行为不同。 我在testing应用程序中有以下简单的视图层次结构: 我试图达到的目的是 – 只将蓝色控制器保持在风景中,而红色控制器只能用于风景 。 我有这样的代码里面的UINavigationController的子类: @implementation CustomNavController – (BOOL)shouldAutorotate { return [[self.viewControllers lastObject] shouldAutorotate]; } – (NSUInteger)supportedInterfaceOrientations { return [[self.viewControllers lastObject] supportedInterfaceOrientations]; } – (UIInterfaceOrientation)preferredInterfaceOrientationForPresentation { return [[self.viewControllers lastObject] preferredInterfaceOrientationForPresentation]; } @end 在我的蓝色控制器中我实现了这个: – (BOOL)shouldAutorotate { return YES; } – (NSUInteger)supportedInterfaceOrientations { return UIInterfaceOrientationMaskLandscape; } 而在红色的控制器中: – […]

UIPageViewController:返回当前可见的视图

你怎么知道UIPageViewController显示的当前页面/视图是UIPageViewController ? 我已经重写了我的子视图的viewDidAppear方法,以便他们在viewDidAppear方法中向父视图发送一个id。 但是,问题是这样的:我不能可靠地使用该ID作为显示页面的ID。 因为如果用户翻页而中途决定停止翻页并放回页面,则viewDidAppear已经被调用。 (视图在curl页面后面可见)。 也许我应该只切换到一个新的ID如果当前视图消失。 但是,我想知道是否没有更简单的方法来返回当前可见的视图?

编译失败:ld:重复的符号_OBJC_CLASS _ $ _ Algebra5FirstViewController

我通过iPhone模拟器运行我的应用程序时突然出现这个错误: 铿锵声:错误:链接器命令失败,退出代码1(使用-v来查看调用): ld:重复符号_OBJC_CLASS _ $ _ Algebra5FirstViewController in … / Algebra5-anwcuftojtxtgkfootneeeqhwztj / Build / Intermediates / Algebra5.build / Debug-iphonesimulator / Algebra5.build / Objects -normal / i386 / ExercisesViewController.o and … / Algebra5-anwcuftojtxtgkfootneeeqhwztj / Build / Intermediates / Algebra5.build / Debug-iphonesimulator / PSLE Algebra5.build/Objects-normal/i386/PSLE_Algebra5FirstViewController.o for architecture i386 这是什么一回事呢?

UIWebView:当应用程序进入后台时,HTML5audio会在iOS 6中暂停

美好的一天, 我的应用是一个音乐播放应用。 我用Javascript控制<audio> -Tag。 到目前为止没有问题,播放,暂停,下一个和上一个button正在工作。 当我待机iOS 5中的设备时,音乐继续播放,但自动下一首歌曲不起作用。 当它不在待机状态时,它可以工作。 而在iOS 6中,按下button后,音乐淡出。 锁屏上的播放/暂停button在iOS 5中运行,但在iOS 6中不能运行。

保存图像在NSUserDefaults?

是否有可能将图像保存为NSUserDefaults作为一个对象,然后检索进一步使用?

如何以编程方式在iOS7中设置设备方向?

我正在使用一个iPad应用程序,使用自动布局,如果用户启用某种模式(“抬头”模式),我只想支持肖像(或肖像倒置)方向,此外,如果设备在风景,我想自动切换到肖像模式。 在顶视图控制器中,我有以下几点: – (NSUInteger) supportedInterfaceOrientations { if (self.modeHeadsUp) { return UIInterfaceOrientationMaskPortrait | UIInterfaceOrientationMaskPortraitUpsideDown; } else { return UIInterfaceOrientationMaskAll; } } – (BOOL) shouldAutorotate { return TRUE; } 根据我在别处看到的答案,答案似乎是我应该使用“应用程序setStatusBarOrientation”。 因此,在用户select“抬头”模式的方法中,我包括: UIApplication *application = [UIApplication sharedApplication]; [application setStatusBarOrientation:UIInterfaceOrientationPortrait animated:YES]; 但是,这似乎并没有做任何事情。 虽然我可以物理移动设备,让它旋转成肖像,但它不会自动执行。 实际上,在运行上面的代码之后,在横向模式下尝试以编程方式设置方向时,使用以下代码查询应用程序“statusBarOrientation”时,横向将保持为“4”: UIApplication *application = [UIApplication sharedApplication]; int orientation = [application statusBarOrientation]; self.movesTextView.text = [NSString stringWithFormat:@"ORIENTATION %d", […]

如何从Javascript调用Objective C方法并在iOS中将数据发送回Javascript?

在iOS中,如何从UIWebView Javascript中调用Objective-C方法,并将数据发送回Javascript? 我知道这可以使用Webkit库在OS X上完成,但在iOS上可以吗? PhoneGap如何实现这一目标?