iphone

Crashing core data application.

Hi, I have setup my first core data project. Everything works fine until I do the following (in Simulator/Device): • Close App using "Home Button" • Double press "Home Button" and quit the app from background. • Reopen the app As soon as it reopens there is an instant crash with nothing in the log. The last thing logged is "Program ...

Program Crash when I click a switch ???

Here is my old question Link I ask a question before,But I put the answer in my code It can compiler without error But when I click the switch ,the program crash I just want to click the switch ,than return which row I click Here is my code First I create a LightTableViewController.h/.m Than I create LightCell0.h/.m in LightCel...

delegate problem

A, B,C is class. A define delegate. B define delegate. C implements delegate. how do C implements delegate of A by B ? it means that C want implements A's delegate, but B include A. so it's wrong! I want to implements A's delegate by B? what to do in B. Transfer A'delegate to C ?? please help me! thanks! ...

[Books] Searching for a good book about iPhone/iPad development

Hi @ll I am currently searching for a good book about iPhone and iPad development. It should cover the current API and should also include best practice methods and some examples for developing apps. Also important for me is that not so common APIs like the AV Foundation are also handled in the book. A beginners guide is not needed (I c...

Localize Application icon for UK market and for USA market on iTunes

Hi, I'm trying to figure out a way of localizing the application icon (Icon.png) for the US Market and the UK market for my app I want a different type of vehicle picture for the uk rather than the US for instance. This looks quite easy to do the info.plist and localize for English to French for instance but I couldn't figure out a way...

How do I save information retrieved from an Addressbook to NSUserDefaults?

Hi, I am trying to use a PeoplePicker to retrieve the name and address of a contact and store it into the NSUserDefaults, which i eventually want to retrieve it on a tableview. My question is how do I save the information in NSUserDefaults. I have used NSDictionary, but I am not making any progress. so I'm trying to save the array to th...

class-dump gives error "Error: Cannot find offset for address in dataOffset for address"??

hi All, I am trying to dump the springboard headers from my mac using following command class-dump /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.0.sdk/System/Library/CoreServices/SpringBoard.app/SpringBoard -H -o /Desktop/SpringBoard but I am getting the following error : 2010-09-13 16:14:23.325 class-dump[1955:10b]...

UIScrollView - detect image is in the middle of the screen

Hi, I am creating an iPhone application and I have a UIScrollView. I'd like to ask how to detect that the imageview is in the middle of the page to display its label below the UIscrollview. Thanks! ...

What other info can I get from this crash report?

Hi there This is a crash report - its from an ad-hoc tester and I cannot find the error. As far as I can see there is an array which is outstepping its bounds (I'm looking for an objectAtIndex:x when the array only has y objects - where y<x). However this only happens every once in a while. Is there anything else that I can get from t...

how to extract 64 bit signed integer value

I'm querying a NSDictionary for a value. Because I got problems I printed the object. It shows me the following: <CFString 0x5d33630 [0x26af380]>{contents = "myDictionaryItem"} = <CFNumber 0x5d58940 [0x26af380]>{value = +1286301600, type = kCFNumberSInt64Type} So it is of type signed 64 bit integer. So I tried to extract the value like...

Problems with XCode 3.1.3 on PowerPC

I have some problems running XCode 3.1.3 I have actually had Interface Builder working (But not now). I think it is related to having tried to force install of higher versions? (So I could try to remove or downgrade something). Or that I cleaned up a bit to much? From: /Developer1.3/Applications/Interface Builder.app/Contents/MacOS: ...

Subclass MKAnnotationView

Hi all again Did somebody ever override successfully the method setDragState in MKAnnotationView? If I try to google for it with "mkannotationview setDragState" I only get three hits! One of them is my other post on stackoverflow ;) The reference says that when subclassing MKAnnotationView the subclass has to care about the dragstate....

Augmented reality on iphone ?

HI All , Is there any third party API by whcih we can draw the augmented reality on the iphone i tried to use the wikitude api for drawing the AR on iphone but it is leaving the watermarks on the applications that i don need so is there any way by whcih i can use and draw the AR on iphone . Thanks ...

iPhone Noob, needs suggestions on how to communicate with the internets via iOS

Hi, we were asked to develop an iphone app like the one in the figure. The problem is: we have no experience in IOS development. For the basic part I can handle the learning curve, but i need suggestions, best practices on the UIKit model and controls. This is a newspaper app. The accordion control shows/hides content based on catego...

distribute library for iphone development

hey! I have created a project in xcode which creates a ".a" file. fine, this works! but now I want to give this .a file to another company, who have to develop with this classes. when I'm create a new project and add the .a file in the new project, no files could be found. for example: when I link to the "XRActionView.h" file or so (whi...

Why touchesMoved method will not be triggered in iphone sometimes?

I have enabled multiply touch. but when i put one finger on the screen at first and put another finger on the screen after that. Then i moved one finger of the two and keep another one not moving, the touchesMoved method will not be trigger sometimes? Is there any one have any idea about that? Thanks for the help ...

OpenGL desktop application to iPhone

I want to develop OpenGL application for iPhone. However I don't like using iPhone simulator. Is it possible to create Cocoa desktop application and then just copy-paste drawing code to iPhone application? How different is coding OpenGL for iPhone and Cocoa? ...

How can I get current time in a +7 timezone on iPhone?

I want to get the +7 timezone on iPhone, how can I do so? Thank you. ...

Replacing NSTimer

Hi, using iphone sdk 4. I have an NSTimer that calls a method every 3 seconds, however the emethod being called is causing the UI to go unresponsive. I thought the NSTImer callback would happen in a separate thread to the main thread but it appears this is not so. How can i replace this with an NSOperation or something so the method is...

Is it possible to use DMD for Iphone

I managed to create an little Test-App which uses Objective-C and D which runs fine in the simulator. But as I dont have a 100$ subscription on Apple I dont know if it would run on an Iphone itself. Because dmd of course will compile x86 code. Would maybe ldc work? Anyone ever tried this? ...