iphone

iPhone/iPad front camera FOV

我是研究僧i 提交于 2021-02-08 12:45:13
问题 There are some measured results available for certain older ios devices but I'm not able to find FOV numbers for newer models, specifically, iPhone 5s ~ 6s Plus and iPad 4 ~ iPad Pro. Also, the numbers listed on the above link don't match with some other calculated results. I'm aware that FOV number can be read using the following API NSLog(@"Camera's FOV is %f",myCamera.activeFormat.videoFieldOfView); However, since I don't have all the models available at hand and the read numbers that are

Adding UITextView to custom tableViewCell = Crash

怎甘沉沦 提交于 2021-02-08 11:57:27
问题 I have a custom tableview cell, which contains some object UIImageView, UILabel, and a UITextView. All object, except the UITextView works fine, but when I try to change the text on the textView: myTextView.text = @"Some string"; the app crashes with this error: Tried to obtain the web lock from a thread other than the main thread or the web thread. This may be a result of calling to UIKit from a secondary thread. Crashing now... Any suggestion is very appreciated. Thanks 回答1: The error

Why is self.navigationController NULL when pushed from UITabBarController subviews

不羁的心 提交于 2021-02-08 11:51:28
问题 This is what I am doing. I have a tabBarControllerOne with 5 tabs. On clicking one of the tabs, I present a modal view controller, which has a navigationBar and a TabBarControllerTwo (with 3 tabs). These three tabs are the matter for concern here. In the 5th Tab of tabBarController I show modalViewController as UINavigationController *navController = [[UINavigationController alloc] initWithRootViewController:self.nextTabView]; // navController.navigationBarHidden = YES; navController

Are BLE-enabled devices discoverable by default?

自作多情 提交于 2021-02-08 10:13:06
问题 I am looking to do something similar to this question, based on the answer it suggests that devices are only discoverable if they are emitting packets of information. What I would like to understand is, do devices like mobile phones (iOS/Android) send these discoverable packets by default? Or would they need to be configured (e.g. via an app) to explicitly advertise themselves or some bits of data? 回答1: No, they are not discoverable by default. Vol 3 of the Bluetooth 4.x spec defines two

Are BLE-enabled devices discoverable by default?

旧城冷巷雨未停 提交于 2021-02-08 10:12:22
问题 I am looking to do something similar to this question, based on the answer it suggests that devices are only discoverable if they are emitting packets of information. What I would like to understand is, do devices like mobile phones (iOS/Android) send these discoverable packets by default? Or would they need to be configured (e.g. via an app) to explicitly advertise themselves or some bits of data? 回答1: No, they are not discoverable by default. Vol 3 of the Bluetooth 4.x spec defines two

Hide UITabBar in landscape

ぐ巨炮叔叔 提交于 2021-02-08 09:51:40
问题 How does one hide the UITabBar programmatically? It's been asked and answered multiple times on SO, but the answers seem to come in roughly two varieties: 1) Using a navigation controller, one can hide the next vc's tab bar before the push using hidesBottomBarWhenPushed property. Typical answer here. 2) Walk through the tabbar controller's view hierarchy and modify the tab bar's frame and/or visibility. Typical answer here. But both sorts of answers fall short, imo. 1) What if we need to hide

How to Install .ipa file to iPhone from Web Link?

∥☆過路亽.° 提交于 2021-02-08 09:22:09
问题 I have created one enterPrise App. And I followed the steps form the below link. I also gave correct paths for Manifest file also. After exporting App to the Server, If I use that link to install that .ipa file to my iPhone, It's showing like the Below image. How to install that .ipa file to iPhone without using third party tools or itunes connect? Image showing like this while click on .ipa file link 回答1: You just need to enable the over the air installation while creating ipa file. Check

Save received remote push notifications - ios

ぐ巨炮叔叔 提交于 2021-02-08 08:54:31
问题 Can we save the received push notifications locally in a plist? I have a reqiurment to show the number of unread push notifications in a badge view just like applicationIconBadgeNumber . But it should be shown inside the application, not as the icon badge view. So, my question is can we save the received push notifications in all the status of the application(running, background and quit)? I have implemented the push notifications, I can share the code if its necessary 回答1: If You have added

How to fix CFRuntimeCreateInstance object leak?

可紊 提交于 2021-02-08 08:51:10
问题 I'm having unseen object leak (CFRuntimeCreateInstance) when profiling my app with instrument leak tool. I have rough imagination where the leak occurs but unable to spot it :) The call tree points me to my class method for loading an image from a spritesheet. Here is a fragment of the call tree (until leaking object CFRuntimeCreateInstance): +[ImageCache loadImageOfType:andIndex:] +[NSString stringWithFormat:] _CFStringCreateWithFormatAndArgumentsAux CFStringCreateCopy _

Is it possible to know the last call date to specific contact in iPhone by programmatically?

亡梦爱人 提交于 2021-02-08 08:03:00
问题 Is it possible to know the last call date to specific contact in iPhone by programmatically? 回答1: NO. You can't access the call details and message details programmatically. If you do so apple will reject your app, also you can do it on jailbroken device. If you are looking for jailbroken devices: Accessing iPhone Call History, anyway I won't recommend it. 来源: https://stackoverflow.com/questions/14722512/is-it-possible-to-know-the-last-call-date-to-specific-contact-in-iphone-by-progr