ios-simulator

cordova file transfer plugin not working in ios simulator

こ雲淡風輕ζ 提交于 2019-12-20 02:38:23
问题 I'm trying to use the camera plugin and file transfer on my project. They work fine on android but when I tested on ios simulator, I'm getting an empty request body on the server when I try to upload a photo using the cordova file transfer plugin. In the code below, the photo_url is the response that I get from the camera plugin. This contains the full path of the photo that I selected from the gallery. Here's the value that I got when I used console.log : file:///Users/user/Library/Developer

Is it possible to simulate a phone call on iPhone simulator?

微笑、不失礼 提交于 2019-12-20 02:35:37
问题 I am building an app that will make a phone call. How can I test this feature on the simulator? I get no response when I call openURL . Though of course this does work on the actual device. Also is it possible to know whether the iPhone is currently in calling mode? 回答1: Sorry Pal. You cannot check it in on a simulator. All the best. 来源: https://stackoverflow.com/questions/4447763/is-it-possible-to-simulate-a-phone-call-on-iphone-simulator

how to give background color for selected text in text view

妖精的绣舞 提交于 2019-12-20 02:14:37
问题 How can I give a background color for selected text in text view? I'm developing text view based app and I have to change the color for selected text. I tried using delegate methods but I haven't found any property like this. Can you please suggest a way to overcome this issue? 回答1: There is no way to change the selection color within AppStore limitation. In fact, considering MobileNotes.app's selection background color is also light blue despite the caret is brown, we can see that Apple

iOS 7 Simulator Bug - NSAttributedString does not appear

馋奶兔 提交于 2019-12-19 19:05:03
问题 UPDATE: I have just encountered this issue on an actual iPhone 5 running iOS 7. Will provide more information soon. I think I have found a bug in the iOS 7 Simulator where a NSAttributedString does not appear. It would be great if someone else could test this to confirm it is a bug, then I will file a bug with Apple. The problem appears to be the combination of using NSUnderlineStyleAttributeName and NSParagraphStyleAttributeName for NSAttributedString. Here are the steps to reproduce: 1) In

iOS 7 Simulator Bug - NSAttributedString does not appear

ぐ巨炮叔叔 提交于 2019-12-19 19:04:13
问题 UPDATE: I have just encountered this issue on an actual iPhone 5 running iOS 7. Will provide more information soon. I think I have found a bug in the iOS 7 Simulator where a NSAttributedString does not appear. It would be great if someone else could test this to confirm it is a bug, then I will file a bug with Apple. The problem appears to be the combination of using NSUnderlineStyleAttributeName and NSParagraphStyleAttributeName for NSAttributedString. Here are the steps to reproduce: 1) In

Enable one handed mode in iPhone 6 simulator?

一笑奈何 提交于 2019-12-19 17:15:22
问题 The iPhone 6 Plus has a "one handed mode" that Apple describes as "Keep everything within reach" on their iPhone design page. The mode is enabled by double touching (but not pressing) the home button. When enabled the screen shrinks to roughly half its normal height. Is there a way to enable this mode in simulator for testing how it looks and transitions? I'm running Xcode 6 GM and have not been able to uncover anything. Worst case, can someone post the exact dimensions on device so it can be

What to do about “Finishing up a navigation transition in an unexpected state. Navigation Bar subview tree might get corrupted.”

北战南征 提交于 2019-12-19 17:13:09
问题 I'm writing an iPhone app using Appcelerator Titanium Mobile. I am hiding and showing the tab group based on what window has focus. dashWin.addEventListener("focus",function(e) { if (dashWin.tabGroupVisible == true) { dashWin.tabGroupVisible=false; tabGroup.animate({bottom:-50,duration:500}); } }); The code above hides the tab group when dashWin receives a focus event. However, I see this message in the Titanium console when the event fires while running in the iPhone simulator: Finishing up

Low-level shared memory on iOS

时光总嘲笑我的痴心妄想 提交于 2019-12-19 10:21:57
问题 I'm trying to construct a block of shared memory on iOS. It compiles and links, but shmget() throws a SIGSYS signal on the most innocent parameters: NSString *p = [[NSBundle mainBundle] pathForResource:@"crash" ofType: nil]; key_t tok = ftok([p UTF8String], 918273); int mid = shmget(tok, 4096, IPC_CREAT|S_IRUSR|S_IWUSR); tok is a large positive integer, not -1. Size - tried 1024, same effect. Is SysV shared memory even supported on iOS? The headers and the libraries are present, or compiler

Wrong Geolocation with React Native and iOS simulator

南笙酒味 提交于 2019-12-19 09:37:58
问题 I am working with react-native-maps and using the react-native api for geolocation. When I am using location through the api what comes back on the simulator shows me in San Francisco not in Denver, CO where I am located. Is there a reason as to why my location would not show where I am at? my function that runs the location // Get current users locaiton on load componentDidMount() { navigator.geolocation.getCurrentPosition((position) => { console.log(position); let newLat = parseFloat

iPhone 4 Simulator for Xcode 6

自作多情 提交于 2019-12-19 09:27:26
问题 I need to simulate an iPhone 4 (NOT iPhone 4S). I get a whole list of iPhones but "4" isn't one of them. Pulling my hair out having Googled for an hour now, what am I doing wrong? I also tried messing with build settings to no avail... 回答1: There is no option for iPhone 4. What difference do you expect between the iPhone 4 and iPhone 4s simulators to warrant its inclusion? There was no such distinction in older versions of the iPhone Simulator which had just "iPhone Retina (3.5-inch)". 来源: