Search Results

Search found 1173 results on 47 pages for 'simulator'.

Page 27/47 | < Previous Page | 23 24 25 26 27 28 29 30 31 32 33 34  | Next Page >

  • Proper method to detect device model (iPhone/iPod Touch)?

    - by Mark
    Is this the proper way to detect which device a user is running? NSString *currentModel = [[UIDevice currentDevice] model]; if ([currentModel isEqualToString:@"iPhone"]) { // The user is running on iPhone so allow Call, Camera, etc. } else { // The user is running on a different device (iPod / iPad / iPhone Simulator) disallow Call. }

    Read the article

  • What can cause EXC_BAD_INSTRUCTION in dyldbootstrap?

    - by Georg Fritzsche
    Porting a bigger project to iPhone i have it running in the simulator, but trying to run it on a iPad device results in a EXC_BAD_INSTRUCTIONin dyld code with the following backtrace: #0 0x2fe01088 in __dyld__ZN13dyldbootstrapL30randomizeExecutableLoadAddressEPK12macho_headerPPKcPm () #1 0x2fe06a72 in __dyld__ZN4dyld5_mainEPK12macho_headermiPPKcS5_S5_ () #2 0x2fe06d3c in __dyld__ZN9__gnu_cxx13new_allocatorIPFPKc17dyld_image_statesjPK15dyld_image_infoEE8allocateEmPKv () #3 0x2fe0b398 in __dyld__ZN9__gnu_cxx13new_allocatorISt13_Rb_tree_nodeIPK11ImageLoaderEE8allocateEmPKv () #4 0x2fe05fa6 in __dyld__ZN4dyld11removeImageEP11ImageLoader () #5 0x2fe06506 in __dyld__ZN4dyld5_mainEPK12macho_headermiPPKcS5_S5_ () #6 0x2fe0128c in __dyld__ZN13dyldbootstrapL30randomizeExecutableLoadAddressEPK12macho_headerPPKcPm () #7 0x2fe01060 in __dyld_branch_to_lookupDyldFunction () This is building for iPhone Device 3.2 with the architectures armv6 armv7 and happens before main() is ever entered. I am currently at a loss for how to find the cause of this, any ideas?

    Read the article

  • Cannot find MediaPlayer.framework

    - by manateeman
    Hi Working with iPhone simulator 3.1.3 - Trying to add a framework to my project - MediaPlayer.framework. I tried the "Add existing framework" method - but cannot find the file in folder "Frameworks". Am I looking in the wrong place? Wrong filename? Wrong space/time continuum? I also did a search for the file - to no avail. Not in /System/Library/Frameworks/ Do I have to download it?

    Read the article

  • j2me/BlackBerry - How to send Email with Attachment from Application?

    - by SWATI
    hey i am building an application in which user can send an email to a person. The user enters the email id of the person to whom email is to be sent in a Edit field and then presses a send button the email must be delivered with an attachment. how can i do it?????? i m really confused after googling. can someone tell me the exact way also,cant i send email from simulator if my cod file is unsigned thanks in advance

    Read the article

  • Android : background thread

    - by Ram
    Team, I need to run a background thread in my application. Could you please share the best practices where to initiate the thread so that keeps running irrespective of the Activity is being shown and things to consider. The purpose of this background thread is to fire transactions from the Simulator to the server and get the response back from the host. thanks, Ramesh

    Read the article

  • related to gdata in iphone

    - by sandhya
    my application is working fine in simulator but when i tried to build it on ipod it is giving some error i.e., "_OBJC_CLASS_$_GDataServiceGoogleSpreadsheet", referenced from: __objc_classrefs__DATA@0 in spreadsheetViewController.o and "_kGDataGoogleSpreadsheetsPrivateFullFeed", referenced from: _kGDataGoogleSpreadsheetsPrivateFullFeed$non_lazy_ptr in spreadsheetViewController.o

    Read the article

  • Localization problems in iPhone

    - by user193545
    Hi I have been trying to localize my iPhone app in two languages - english and german I have created two folders en.lproj and de.lproj each containing Localizable.strings file for respective language. I have included these files in my resources folder, changed the encoding of these files to UTF-16. I have tried cleaning the project and building it again, deleting folder at path: Library/Application Support/iPhone Simulator/User But the problem is still there. Anybody having an idea please help.

    Read the article

  • How to debug iPhone project crash when there is no error message

    - by teepusink
    Hi, I am doing this iPhone app that works fine on the simulator. However, when I run it on a device in debug mode, it just crash without any error messages. How can I debug that? I heard about a flag we can set to help with this kind of situation but not sure what that flag is and how to set it. If I'm not mistaken I think what that flag does is put a break point automatically prior to crash. Thanks, Tee

    Read the article

  • Fail to save a managed object to core-data after its properties were updated.

    - by Tzur Gazit
    I have to trouble to create the object, but updating it fails. Here is the creation code: // Save data from pList to core data fro the first time - (void) saveToCoreData:(NSDictionary *)plistDictionary { // Create system parameter entity SystemParameters *systemParametersEntity = (SystemParameters *)[NSEntityDescription insertNewObjectForEntityForName:@"SystemParameters" inManagedObjectContext:mManagedObjectContext]; //// // GPS SIMULATOR //// NSDictionary *GpsSimulator = [plistDictionary valueForKey:@"GpsSimulator"]; [systemParametersEntity setMGpsSimulatorEnabled:[[GpsSimulator objectForKey:@"Enabled"] boolValue]]; [systemParametersEntity setMGpsSimulatorFileName:[GpsSimulator valueForKey:@"FileName"]]; [systemParametersEntity setMGpsSimulatorPlaybackSpeed:[[GpsSimulator objectForKey:@"PlaybackSpeed"] intValue]]; [self saveAction]; } During execution the cached copy is changed and then it is saved (or trying) to the database. Here is the code to save the changed copy: // Save data from pList to core data fro the first time - (void) saveSystemParametersToCoreData:(SystemParameters *)theSystemParameters { // Step 1: Select Data NSFetchRequest *fetchRequest = [[NSFetchRequest alloc] init]; NSEntityDescription *entity = [NSEntityDescription entityForName:@"SystemParameters" inManagedObjectContext:mManagedObjectContext]; [fetchRequest setEntity:entity]; NSError *error = nil; NSArray *items = [self.managedObjectContext executeFetchRequest:fetchRequest error:&error]; [fetchRequest release]; if (error) { NSLog(@"CoreData: saveSystemParametersToCoreData: Unresolved error %@, %@", error, [error userInfo]); abort(); } // Step 2: Update Object SystemParameters *systemParameters = [items objectAtIndex:0]; //// // GPS SIMULATOR //// [systemParameters setMGpsSimulatorEnabled:[theSystemParameters mGpsSimulatorEnabled]]; [systemParameters setMGpsSimulatorFileName:[theSystemParameters mGpsSimulatorFileName]]; [systemParameters setMGpsSimulatorPlaybackSpeed:[theSystemParameters mGpsSimulatorPlaybackSpeed]]; // Step 3: Save Updates [self saveAction]; } As to can see, I fetch the object that I want to update, change its values and save. Here is the saving code: - (void)saveAction { NSError *error; if (![[self mManagedObjectContext] save:&error]) { NSLog(@"ERROR:saveAction. Unresolved Core Data Save error %@, %@", error, [error userInfo]); exit(-1); } } The Persistent store method: - (NSPersistentStoreCoordinator *)persistentStoreCoordinator { if (mPersistentStoreCoordinator != nil) { return mPersistentStoreCoordinator; } NSString *path = [self databasePath]; NSURL *storeUrl = [NSURL fileURLWithPath:path]; NSError *error = nil; mPersistentStoreCoordinator = [[NSPersistentStoreCoordinator alloc] initWithManagedObjectModel:[self managedObjectModel]]; if (![mPersistentStoreCoordinator addPersistentStoreWithType:NSSQLiteStoreType configuration:nil URL:storeUrl options:nil error:&error]) { NSLog(@"Unresolved error %@, %@", error, [error userInfo]); abort(); } return mPersistentStoreCoordinator; } There is no error but the sqLite file is not updated, hence the data is not persistent. Thanks in advance.

    Read the article

  • subview is not added immediately (iphone)

    - by Jonathan
    When the return button on the keyboard for a textfield is tapped I want to add a UIView, then connect to a website with NSURlConnection sendsynchronousrequest and I have the code in that order But when I run in the simulator (I can't run on device) the connection is run first then the subview is added (ie the opposite of the order of the code) Why is this and how can stop it, because I want the view to added, then the connection done and then the view removed.

    Read the article

  • Easy way to trigger a noise in iPhone OS?

    - by mystify
    For example, the first gen iPod touch is making sharp tick sounds when rolling a picker view. I need a easy way to trigger a sound for my unit tests. When a unit test fails, I want the iPhone simulator to make a noise so that I see it. Because I'm not looking at the console all the time for NSLog messages...

    Read the article

  • iPhone. Particle system performance

    - by e40pud
    I try to draw rain and snow as particle system using Core Graphics. In simulator rendering proceeded fine but when I run my app on real device rendering is slow down. So, advise me please approaches to increase particle system drawing performance on iPhone. May be I should use OpenGL for this or CoreAnimation?

    Read the article

  • iPhone Simulating App Update at home before going out in the big bad world

    - by Aran Mulholland
    this is a follow on from this question and the link given it seems that when an app is updated all of the files in the documents directory are copied into the updated apps documents directory and also anything in Library/Preferences. Whats the best way to simulate this for testing purposes? Just copy the files in ApplicationSupport/iPhone Simulator etc? or has anyone developped any funky techniques for testing this.

    Read the article

  • save sqlite3 file of my App

    - by user1553381
    I'm new with dealing with the .sqlite3 in iphone, I created a sqlite3 file in /Users/myLab/Library/Application Support/iPhone Simulator/5.1/Applications/308C4355-D8EE-4524-A7F9-638DEB68B298/Documents/file.sqlite3 and I inserted the tables into it using Terminal.app and everything works ok with my app. but when I moved this application to another device, opened by xcode and trying to run it, I discovered that my tables are not found in this .sqlite3 file in another device. how can I save my tables in .sqlite3 file??

    Read the article

  • Why does this crash: stringByAppendingFormat

    - by Emil
    Hey. My code crashes at this function (at the stringByAppendingFormat: with error objc_msgSend() selector name: stringByAppendingFormat). This is that line: // imagesPath = ...iPhone Simulator/4.0/Applications/NUMBERS/Documents/images UIImage *image = [[UIImage alloc] initWithContentsOfFile:[imagesPath stringByAppendingFormat:@"/%d.png", [[self.postsArrayID objectAtIndex:row] intValue]]]; Could it have something to do with the retaining of objects? Thanks :)

    Read the article

  • UINavigationController's back button disappears?

    - by QAD
    I notice something strange happens to one of my view controller: the back button disappears, yet it's possible to go back to previous view controller by tapping the top left corner (i.e where the button should reside). In my entire file there's no line that set self.navigationItem.hidesBackButton to YES; also NSLog prints 0 as self.navigationItem.hidesBackButton's value in viewDidLoad. This occurs in both the simulator and real device. Any ideas?

    Read the article

  • Is there any way to force an iPhone application to relaunch?

    - by Jared P
    Basically -[UIApplication openURL:] would be perfect, if it wasn't for the fact that it doesn't work within the same application (at least on simulator -- if this works on device someone please tell me). It's not a super big deal though if it just relaunches w/o URLness since I can obviously just persist some data. The goal of this is to essentially free all memory in the application and call all of the loading procedures.

    Read the article

  • Tunnel Failed at the time of Upload file to FTP

    - by Karthick
    File upload is works fine from my simulator (blackberry 8830).It upload the file to FTP Server. But in the device when I try to upload file to FTP server it gives the alert “Tunnel Failed “. I am using StreamConnection sc = (StreamConnection) Connector.open(url); How to solve this issue. Can anyone help me???

    Read the article

  • Inserting "£" in a string to a text file

    - by Harry
    iPhone Application writes data to a text file, saves it on the Documnets folder. Great that works If I place "£" in the string, or use [currencyStyle stringFromNumber] the text file will not be created. The "£" and the [currencyStyle stringFromNumber] works if the information is printed to a "New View" page on the simulator, pound and all Can someone please explain what's happening?

    Read the article

< Previous Page | 23 24 25 26 27 28 29 30 31 32 33 34  | Next Page >