ios-simulator

iOS input stream receives fast data only if output stream is simultaneously sending

独自空忆成欢 提交于 2019-12-24 10:46:15
问题 My iOS app requires socket communication. I'm following this Ray Wenderlich tutorial for setting up the input and output streams. The server I'm using is Twisted. My app requires sending and receiving fast bursts of data generated by external events like gyroscope data. It is sending/receiving data in form of JSON string. So largely, it's very much like a real-time messaging chat app but sending and receiving is very fast and in bursts. So my app layout is that I have 1 view controller:

Why is my Video played in simulator but not on Device (iPad) using AVFoundation Videoplayer?

℡╲_俬逩灬. 提交于 2019-12-24 06:37:15
问题 I built my own custom video player (edit: find example code here) with AVMoviePlayerView.h #import <UIKit/UIKit.h> #import <AVFoundation/AVFoundation.h> @class AVPlayer; @interface AVMoviePlayerView : UIView @property (nonatomic) AVPlayer *player; - (void)setPlayer:(AVPlayer*)player; - (void)setVideoFillMode:(NSString *)fillMode; @end and AVMoviePlayerView.m #import "AVMoviePlayerView.h" #import <CoreMedia/CoreMedia.h> @implementation AVMoviePlayerView + (Class)layerClass { return

Why is my Video played in simulator but not on Device (iPad) using AVFoundation Videoplayer?

ε祈祈猫儿з 提交于 2019-12-24 06:37:15
问题 I built my own custom video player (edit: find example code here) with AVMoviePlayerView.h #import <UIKit/UIKit.h> #import <AVFoundation/AVFoundation.h> @class AVPlayer; @interface AVMoviePlayerView : UIView @property (nonatomic) AVPlayer *player; - (void)setPlayer:(AVPlayer*)player; - (void)setVideoFillMode:(NSString *)fillMode; @end and AVMoviePlayerView.m #import "AVMoviePlayerView.h" #import <CoreMedia/CoreMedia.h> @implementation AVMoviePlayerView + (Class)layerClass { return

SKLightNode not working on real device [iPhone 5]

旧街凉风 提交于 2019-12-24 05:37:38
问题 I've set up a minimalistic project here which simply adds a red square and - after tapping the screen - a light source lighting it. On simulator it runs fine, but on my iPhone 5 the square just becomes invisible as soon as the light source gets added to the node tree. Can anyone test this on other, real devices and give feedback? Any solutions? It's driving me crazy. Here's the scene's code: SKLightNode* lightNode; @implementation GameScene -(void)didMoveToView:(SKView *)view { //Add some

How to get Retina display iPad simulator in XCode 4.2, Mac OS 10.6.8 (Snow Loepard)

我与影子孤独终老i 提交于 2019-12-24 05:21:51
问题 i'v been looking to kick start my app development for the new iPad(iPad-3). But i could not find a place where i can download/update my XCode inorder to get the retina display simulator . Apple released XCode 4.3.1 with iOS 5.1 SDK . But that requires Mac OS 10.7.3(Lion). Is it mandatory for me to upgrade myself to Lion in order to start developing apps for the retina display iPad or can i get the same in Snow Leopard??? 回答1: I tried installing the same from Snow leopard and failed with error

Does Xcode 6 Simulator use x86_64?

懵懂的女人 提交于 2019-12-24 05:12:12
问题 Sorry to have to ask this. This relates to Undefined symbols for architecture x86_64 when building for ARM64, but I only have Xcode 4 and 5 for testing. Does Xcode 6 use x86_64 for the iOS simulator? This seems to be related: Xcode 6 iOS Simulator (iPad2, iPhone5) now Release Mode now running x86_64. Debug i386. But I can't quite make out the finer points the person asking the question is making. 回答1: It depends. It uses x86_64 when building for a 64-bit simulated device. It uses i386 when

Does Xcode 6 Simulator use x86_64?

自作多情 提交于 2019-12-24 05:12:06
问题 Sorry to have to ask this. This relates to Undefined symbols for architecture x86_64 when building for ARM64, but I only have Xcode 4 and 5 for testing. Does Xcode 6 use x86_64 for the iOS simulator? This seems to be related: Xcode 6 iOS Simulator (iPad2, iPhone5) now Release Mode now running x86_64. Debug i386. But I can't quite make out the finer points the person asking the question is making. 回答1: It depends. It uses x86_64 when building for a 64-bit simulated device. It uses i386 when

iPhone simulator isn't showing splash screen

匆匆过客 提交于 2019-12-24 04:18:07
问题 All I have to do to show a splash screen in a view-based application is drag an image into the resources folder and name it default.png, correct? This is what I did, but the image doesn't show. 回答1: When you added it, did you tell it to copy to output location? It was a checkbox on the dialog that showed up after you added it. Try readding and make sure this checkbox is checked. UPDATE from comments: a clean build fixed the problem 回答2: It sounds like what you are doing is correct, but

Xcode duplicated devices bug

百般思念 提交于 2019-12-24 02:56:26
问题 I opened Xcode and suddenly I found the simulator devices duplicated. I found a similar question 1 but that's not my case, I'm using the latest SDK and a clean Xcode installation. Screenshot in the link bellow. Any ideas? 1 iOS Simulator devices listed twice in Xcode run destinations list 回答1: You can delete the duplicates that you don't want from Xcode's Devices window (Window -> Devices) or from the command line using 'xcrun simctl delete [UDID]' 来源: https://stackoverflow.com/questions

iPhone 6.1 Simulator

本秂侑毒 提交于 2019-12-24 02:21:01
问题 I am just starting to learn programming for the iPhone and I had a very general question. I was wondering why is it that when I run my program in xcode, even though I am programming for iPhone 5, when I run the "iPhone 6.1 Simulator" instead of a iPhone 5 Simulator and iPhone 4 pops up? I am on Mac OS X - 10.7.5 And Xcode version 4.6 Could it be because the apple id I used to download xcode with only has an iPhone 4 and not a 5? Thanks for the help. 回答1: To change your simulator device to