IPhone SDK crashes?

When I try to open the photos app on the iPhone SDK, a warning comes up and says and try to save an image from Mobile Safari by click-holding an image until it says "Save Photo" Safari crashes and it says "MobileSafari quit unexpectedly." How can I fix this? I have the latest iPhone SDK update.

Found a solution.
I reload the table before i ask it to scroll to a position.
- (void) setOrdinal:(jint) topItem {
NSIndexPath *indexPath = [NSIndexPath indexPathForRow:topItem inSection:0];
[tableView reloadData];
[tableView scrollToRowAtIndexPath:indexPath atScrollPosition:UITableViewScrollPositionTop animated:NO];
The setOrdinal method is called by the user of the view containing the table.
This works just fine.
Thanks to all who took time to read this post.
-TRS

Similar Messages

  • IPhone SDK 2.2 memory corruption

    Hello. I'm working on an application for iPhone SDK 2.2 and seem to be having weird memory corruption problems. Not necessarily leaks because using Instruments shows my memory stamp never going above about 1.8 megs. The nature of the app is a database of animals so I'm constantly loading and unloading sounds and images. None of the objects are very large (at most I'll have 4 800k pngs loaded at once) and I've checked and rechecked my alloc/retain/release and everything is in order (hence no memory usage increase). However...after using the application for a while I'll notice strange behavior. For example:
    1) we have a UILabel as the title for each page. After a while the font size of this will change.
    2) I have several screens with a subclassed UIScrollView where images are loaded and then added to. The problem shows itself here by the images not showing up. there's no crash, stepping through the debugger shows that the image loads up fine, it's just that the image is not there.
    3) I have a UILabel at the top of an animal description screen, which in the nib file is called "Animal Name" by default. This will change to show "Animal Name" at the top.
    I've removed all audio in our latest build so that isn't the problem. What I'm starting to suspect is that altering anything defined in a nib file will cause corruption. For example, the UIScrollView is defined in the nib file, and I constantly am reassigning the contents of that with a UIImageView. This UIImageView is handled within the subview class like :
    UIImageView *imgView = [[UIImageView alloc] initWithImage: [ UIImage imageWithContentsOfFile:[[NSBundle mainBundle ] pathForResource:imageToLoad ofType:@"png" ]] ];
    imgView.tag = 50;
    [self addSubview:imgView ];
    [ imgView release ];
    Then later when moving away from the screen I'll find that view's tag and remove it from the superview (since addSubView increases the retain count, the alloc+addSubView is cancelled by release+removeFromSuperView)
    I can't explain why titles that are never changed would be affected, but it must somehow be related. What I'm wondering is: are there any known issues involving modification of the contents of objects defined in Nib files? Perhaps the memory allocated when initWithNibName is restrained, then any modification of objects allocated within it can cause corruption. I'm starting to think I should just alloc and free anything modified in code and skip using nib files altogether (I reset the text on buttons for example). If this is a known issue please let me know. I'll give you more information if I can.
    Thank you

    Just download the huge SDK package and install. No need to uninstall the old SDK.

  • Launchd_core_logic.c error on iPhone SDK 3.1

    Hi,
    I am running release version of the app on the iPhone, it works fine. There is no error messages in the XCode debugger:
    Running…
    [Switching to thread 11779]
    [Switching to thread 11779]
    sharedlibrary apply-load-rules all
    (gdb) continue
    [Switching to thread 12291]
    [Switching to thread 11779]
    [Switching to thread 13059]
    Debugger stopped.
    Program exited with status value:0.
    However I see these messages in the console of iPhone when connect to it via Organizer:
    Wed Oct 7 15:37:01 unknown com.apple.launchd[1] <Notice>: (UIKitApplication:com.blah.blah[0x830c]) Bug: launchdcorelogic.c:2649 (23909):10
    Wed Oct 7 15:37:01 unknown com.apple.launchd[1] <Notice>: (UIKitApplication:com.blah.blah[0x830c]) Working around 5020256. Assuming the job crashed.
    Wed Oct 7 15:37:01 unknown com.apple.launchd[1] <Warning>: (UIKitApplication:com.blah.blah[0x830c]) Job appears to have crashed: Segmentation fault
    Wed Oct 7 15:37:01 unknown com.apple.debugserver-43[6124] <Warning>: 1 [17ec/1603]: error: ::read ( 7, 0x28091c, 1024 ) => -1 err = Bad file descriptor (0x00000009)
    Wed Oct 7 15:37:01 unknown SpringBoard[25] <Warning>: Application 'blah' exited abnormally with signal 11: Segmentation fault
    There is no crash logs created, so I don't think it is a crash.
    What is it? Is it a problem, even though application works perfectly fine?
    Thanks

    I am also experiencing this problem.
    Our application used to work perfectly fine, then suddenly this situation appeared :/ And in our case, this is serious problem, because we save application state using archiveRootObject:toFile method of NSKeyedArchiver class in applicationWillTerminate, and due to this crash, our root object do not get saved so we can not restore application state!
    Of course, everything works perfectly on simulator...
    I tried installation new iPhone OS (had 3.0.1, now 3.1.2), also installed newer version of iPhone SDK with new Xcode - of course - did not help. Tried installing application from other computer, tried installing other application, which used to work - nothing - problem remains. Really fantastic...
    I wonder whether this problem with iPhone device or something else. As for now, I don't have possibility to check if this situation is present on other device.
    Any help will be greatly appreciated!

  • My iPhone 5s crashes a lot!!!

    Hello there,
    Why is my iPhone 5s crashing a lot with almost every app I use even sometimes when I open Settings? I like the phone so far other than this very annoying issue. This is my 2nd device after returning the 1st one because of the same problem plus and issue with the microphone that seemed to be over heated after a long period of phone call, and maybe this device will end up to be returned too. I've done hard reset/soft reset many times and even tried to restore as new (from scratch) but nothing really has changed.  I enabled the automatically send for diagnostics and usage so that Apple might notice the crazy reports I get from crashing. Please I need help as soon as possible.
    Best,
    Adel

    I don't understand what you're asking.
    "But what about settings?  Is that also something I can even delete?"  I don't follow.
    You cannot delete the "Settings" category.  You can delete some of the apps that have settings set from within settings.  That would delete their settings.
    Say you have a suspicious app called "Zzyzx".  You could delete that app by holding its icon until it wiggles, then click the "X" in its upper left.  If Zzyzx had some settings, deleting the app would delete its settings as well.
    "Apps work fine sometimes, but sometimes they just crash."  Regardless, find those suspicious ones and delete them.  Of course, all Apple's apps cannot be deleted (they would not show the "X" when wiggling the icons).  But that is fine - they are not suspicious.

  • HT201407 during a update of apple my iphone 3GS crashed an now the operating system wont load up..ive tried to reset the phone to the factory settings it took 4 hours an completed but my iphone still wont come on..what can i do to fix the problem? please

    during a update of apple my iphone 3GS crashed an now the operating system wont load up..ive tried to reset the phone to the factory settings using itunes it took 4 hours and completed but my phone still wont come on..what can i do to fix the problem? please help #

    In trying to include what information all that I could I should have specified I DON'T KNOW THAT IT WAS DEFINATELY JAILBROKEN when I took it to the apple store they told me there's no way for them to tell if it was jail broken or not. I'm only going by what ppl have told me COULD HAVE BEEN DONE TO THE PHONE. With that said the only thing I know for sure is that the apple tech at the Genius Bar told me that someone took control of my root menu in February &amp; I've had no control of my phone since. I asked him how to regain control &amp; how he knew his exact words were "oh that is out of our scope of capabilities here at this level &amp; you would need an apple engineer to fix it". I said ok then how do I get an apple eng then? He laughed &amp; said you can't!!!! To which I was furious I came home &amp; called apple requesting to speak w/the fraud dept to file a report they said we don't have a fraud dept!! So after a 45 mn phone call again I left w/no answers.
    @TJBUSMC1973-
    I DON'T HAVE THOUSANDS OF DOLLARS TO SPEND HIRING AN ATTORNEY &amp; Although I appreciate your suggestion I fail to how an attorney would be able to facilitate in any way since there's no suspect. I cannot prove that it's him doing it so I certainly can't pursue legal action w/no proof &amp; no money. :'((
    Again I thank you for your advice but I don't think that will help.
    I was looking more for a TECHNICAL way to avoid this happening w/a new phone should I buy one or trying to get them out of my phone now! Such as installing some kind of software protection?? Someway to clear out the entire phone (other than factory reset which was done 10 x's w/no success, etc. if this person got in then there HAS TO BE A WAY OF GETTING HIM OUT, right????

  • HT204266 My iphone keeps crashing and turning itself off.....even though battery life is fine...as soon as i plug charger in it comes bcak on....help very frustrating...3g

    My iphone keeps crashing and turning itself off.....even though battery life is fine...as soon as i plug charger in it comes bcak on....help very frustrating...3g

    absolutely that is frustrating. if the battery life is fine there could be two things software or hardware. to find out if your back up your information in itunes and import pictures and then restore the phone as NEW then you can test it out. if it is still shutting off it is hardware related

  • IPhone SDK - What is the equivalent of a combo box

    I have a screen where there are quite a few items which are of the multiple-choice type. In other platforms i use a combo box (pick lists) to do this.
    On the iPhone SDK the only thing that comes close is the UIPicketView which is ugly IMHO. it takes too much real estate and too heavy.
    Is this is the only control available now?
    Also does the UIPicker come with an associated control which will launch the picker? What i mean is on other platforms and on the web there is a text field with a button with a down arrow next to it. Clicking either on the text field or the down arrow drops the list down. Is there a similar control on the iPhone which when clicked launches the picker OR do i have to create a button or a custom view which will launch the picker?
    Thanks for reading this and for your feedback.
    -TRS

    I do not believe there is an equivalent of -D in the DB JVM, a possible solution is:
    Load a properties file into the DB using Loadjava, then open this file from your Java code using Properties.load(), then iterate the properties calling System.setProperty().
    Chris

  • Learning iPhone SDK - Trying to draw an image

    Although I have programmed for Mac in the last years, I have never used Mac-specific technologies as Cocoa (I have programmed more in OpenGL, SDL, and the like).
    Now I am getting started with the iPhone SDK. I'd like to do some OpenGL|ES stuff, but since it is not supported in the Simulator, and you need to join the Developer Program to test stuff on directly on the device (and admission of new members is closed right now), I am focused on other stuff right now, like using Core Graphics for drawing images on the iPhone.
    My application is based on the Cocoa Touch Application template. I left the default code except for a few changes.
    In file "UntitledAppDelegate.m", I have changed the method applicationDidFinishLaunching to:
    - (void)applicationDidFinishLaunching:(UIApplication *)application {
    window = [[[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]] autorelease];
    contentView = [[[MyView alloc] initWithFrame:[[UIScreen mainScreen] applicationFrame]] autorelease];
    [window addSubview:contentView];
    [window makeKeyAndVisible];
    Then, in the MyView interface file (MyView.h), I have added the attribute "UIImageView* image;" to the class, which is declared as a property, and synthesized.
    In the class implementation (MyView.m), I have changed the method initWithFrame to:
    - (id)initWithFrame:(CGRect)frame {
    if (self = [super initWithFrame:frame]) {
    self.backgroundColor = [UIColor darkGrayColor];
    image = [self loadImageView:@"box01.png"];
    [self addSubview:image];
    return self;
    loadImageView is a private method I have implemented as:
    - (UIImageView *)loadImageView:(NSString *) imageName {
    UIImage *img = [UIImage imageNamed:imageName];
    UIImageView *theView = [[UIImageView alloc] initWithImage:img];
    return theView;
    Since I have loaded the UIImage, and initialized a UIImageView with it, and the image view is added as a subview of the main view attached to the window, I thought it should be everything needed to draw an image on the screen. But nothing is visible. The screen is simply black when I run this on the Simulator. It doesn't even set the background to dark gray.
    So I need some help with this, I sure that anyone with experience in Mac programming will know how to help me.
    Thank you in advance.
    Message was edited by: Jedive

    I removed the XIB file from the project, but that didn't help. It was a problem with my inexperience with Objective-C. When accessing class properties in a method of the same class, i was not putting "self." before the property (in C++ that's redundant). For example, in the line "window = [[[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]] autorelease];". After adding it, it works correctly.

  • My Iphone keeps crashing since the new update.. how do I get my phone to work right

    My Iphone keeps crashing since the new update 7.1.. how do I get my phone to work right

    First, create a separate login on your computer for your friend. Do this BEFORE you do anything else. Next, make sure iTunes is up to date. Then:
    1. Disable auto sync when an iPod/iPhone is connected under Preferences>Devices in iTunes.
    2. Make sure you have one contact & one event in the supported applications(Address Book, iCal) on your computer. These entries can be fake, doesn't matter, the important point is that these programs not be empty.
    3. Connect her phone, iTunes running, do not sync at this point.
    4. Store>Authorize this computer.
    5. File>Transfer Purchases(To make sure all purchased content on her phone will be in her itunes library).
    6. Right click in the device pane & select reset warnings.
    7. Right click again and select backup.
    8. Right click again & select restore from backup, select the backup you just made. When prompted to create another backup, decline.
    9. This MUST be followed by a sync to restore her itunes content, which you select from the various tabs, You'll get a popup regarding her contacts & calendars asking to merge or replace, select merge.
    You should be good to go.

  • While updating to ios 6 my iphone has crashed

    while updating to ios 6 my iphone has crashed, and is now stuck on the installation screen. anyone know what i can do from here?

    I'm having the same problems. Can't even find out if Apple is working on it. Tried to downgrade but is not supported by apple so error 3194 comes up which is verifying with the apple web site. Which then stops everything. I understand you can modify the "hosts" file to by pass the issue, but hate doing that as it gets involved. May try it if I can't get any satisfaction from apple.

  • Iphone keeps crashing constantly...

    So I open an app, crash I open up pandora radio app (internet radio) *skip skip skip* I do a google search crash then just sends me back to home screen. Any idea why my iphone keeps crashing? I'm running a 3g. I try to do a restart but still does the same thing.

    I'm having the same problem with an iPhone4...

  • HT201210 My iPhone has crashed and i went to iTunes to restore it and after waiting for it to be restored it said "The iPhone could not be restored. An unknown error occurred (2006). Can anybody please help suggest what i should do now?

    My iPhone has crashed and i went to iTunes to restore it and after waiting for it to be restored it said "The iPhone could not be restored. An unknown error occurred (2006). Can anybody please help suggest what i should do now?

    This error normally appears if you attempted to downgrade or modify your iOS. See here http://support.apple.com/kb/TS3694#error1015

  • My iPhone has crashed. Can I transfer my back up files to another computer and restore my iPhone from these back ups?

    My iPhone 3GS crashed and now only displays the usb to iTunes screen. I came to connect it to iTunes. My computer is currently unable to connect to the internet for unknown reasons. When I plugged my iPhone into my computer, iTunes displayed an error message saying “The iphone software update server could not be contacted”.
    I assume I need to download and update the IOS on my phone, for which I need an internet connection. I have a laptop with internet connection. If I connect my iPhone to iTunes on my laptop, (a different itunes library) then  will it result in the loss of my photos, videos, contacts and messages as there will be no back up to restore from?
    Is there a way I can transfer the back up from my PC to my laptop, so that when I connect my iPhone it is restored to the state of the last back up and I don’t lose photos/videos/contacts/messages?
    Any other solutions?
    Thanks

    PDF documents are not "in a Adobe reader app"; they are just files stored on your device.  You can transfer them as you would any other files.
    If the device is still active, you could upload them to https://cloud.acrobat.com/ to share with other devices, but if it's deactivated you will probably need a cable or similar connection.

  • My Iphone 5 crashed after installing ios8

    My iphone 5 crashed when downloading and installing ios8 update.   Tried to retrieve in iTunes, but gets error code
    What do I do now??

    Hi tutts1111,
    I apologize, I'm a bit unclear on the exact nature of the issue you are describing, and/or what exactly you are currently seeing. If your iPhone won't start up or respond, you may find the following article helpful:
    iOS: Not responding or does not turn on - Apple Support
    On the other hand, if the frozen screen you are seeing is an icon screen directing you to connect to iTunes, or you are otherwise unable to update/restore your iPhone, then this article may be of more use:
    If you can't update or restore your iPhone, iPad, or iPod touch - Apple Support
    Regards,
    - Brenden

  • HT1414 My iPhone has crashed during a sync and now I can't restore from backup as it is asking for password to load the backup yet neither the lock code for the phone or my iTunes Password are working... I have no other password to all upon and need the r

    My iPhone has crashed during a sync and now I can't restore from backup as it is asking for password to load the backup yet neither the lock code for the phone or my iTunes Password are working... I have no other password to call upon and need the restore to retrieve info onto my phone, I am a real novice to this...... please help, !!!!

    If anyone else is looking for a solution to this same problem, I was able to get it working looking through several older discussions.
    The solution was to use the password that I had on my iTunes account the very first time I set up the iPhone about a year ago.  I changed my iTunes password about 10 months ago;  but apparently, the backups continue to use the password that existed when the phone was first set up.
    A couple of troubling things with this are that 1) I didn't apply a password when I did the backup this afternoon so I don't understand why it was required when I did the restore a few hours later. and 2) it makes zero sense why iTunes would not be smart enough to use the current accout password when requiring the password to restore from a backup made with no password. 
    I thought iTunes and Apple were smarter than that.  With so many posts stating exactly the same problem, it is clear that this is bug in the software. 
    Best,
    Craig

Maybe you are looking for