Showing posts with label iPhone Simulator. Show all posts
Showing posts with label iPhone Simulator. Show all posts

Thursday, November 3, 2011

NSTemporaryDirecotory

A lenyeg, hogy Simulator-ban nem az app sandbox-aba mutat mint pl az NSHomeDirectory()

Igy amig a device-on:
NSHomeDirectory() == /var/mobile/Applications/[APP_ID]
NSTemporaryDirectory() == /private/var/mobile/Applications/[APP_ID]/tmp/
addig iOS Simulatorban:
NSHomeDirectory() == /Users/[USER]/Library/Application Support/iPhone Simulator/5.0/Applications/[APP_ID]
NSTemporaryDirectory == /var/folders/oA/[ID]/-Tmp-/

Do you use the temporary directory? On Simulator NSTemporaryDirectory() returns Mac OS X tmp, a path in /var, which is outside the application sandbox.

#if TARGET_IPHONE_SIMULATOR
NSString *tmpPath = [NSHomeDirectory() stringByAppendingPathComponent: @"tmp"];
#else
NSString *tmpPath = NSTemporaryDirectory();
#endif

Tuesday, October 25, 2011

Halozat sebessegenek korlatozasa

Ha mondjuk 3G sebesseggek akarunk valamit simulatorban kiprobalni akkor jol johetnek ezek:

Ha Lion van a gepen, akkor Network Link Conditioner

Ha nincs Lion akkor is van par megoldas:

1. termialbol IP firewall rule-lal:

sudo ipfw add 500 pipe 1 ip from any to any 
sudo ipfw pipe 1 config bw 112kbit/s plr 0 delay 20ms
vissza pedig:
sudo ipfw delete 500

-50 USD, de van free trial
-Windows, Mac OS, Linux
-sok mas dologra is jo

-lehet domain-ekre korlatozni

Wednesday, October 20, 2010

SpeedLimit

SpeedLimit is a Leopard preference pane for limiting your network bandwidth to one of a couple different speeds — 768k DSL, Edge, 3G, and Dialup. This is really handy for testing your iPhone app under normal Edge network conditions in the iPhone Simulator.

Simulator forgatasnak lelassitasa

iPhone Simulator-ban Hardware/Simulate Hardware Keyboard bekapcsolasa majd 3-szor a Shift. Ezek utan lassabban fog forogni a simulator.

Monday, October 12, 2009

Honnan lehet tudni, hogy Simulator-ban fut-e az app

Valasz a stackoverflow-rol:

It's in the SDK docs under "Compiling source code conditionally"

The relevant definitions are TARGET_OS_IPHONE and TARGET_IPHONE_SIMULATOR, which will be defined provided that you

#include "TargetConditionals.h"

Since that won't exist on non apple platforms, you can wrap your include like this

#ifdef __APPLE__
#include "TargetConditionals.h"
#endif

before including that file

So, for example, if you want to check that you are running on device, you should do

#if !(TARGET_IPHONE_SIMULATOR)

Itt is felmerult ugyanez a kerdes. Es itt van az iPhone Reference Library-ban.

Tuesday, August 11, 2009

Hova teszi a Simulator a kepeket es a thumbnaileket

Ide:
/Users/xxx/Library/Application Support/iPhone Simulator/User/Media/DCIM/100APPLE
A thumbnaileket pedig ide ala a /.MISC-be, de ez finder-ben alapbol nem latszik
Itt van egy csomo THM ami valojaban 75x75 pixeles JPG es BTH ami nem tudom micsoda.

Friday, July 17, 2009

Hova ment UIImageWriteToSavedPhotosAlbum Simulator-ban

Hat ide:
yourhome/Library/Application Support/iPhone Simulator/User/Media/DCIM/100APPLE

Monday, July 13, 2009

ketujjas muveletek az iPhone Simulatorban

Option key (alt) - 2 "uj" a kozeppotra tukrozve mozog
Option key + Shift - egyutt mozog a 2 "uj"