iphone-sdk-3.0

View and Unknown Exception

有些话、适合烂在心里 提交于 2019-12-11 11:25:28
问题 I'm having an strange exception when I go to connect the button in interface builder. Any ideas on what is going on. 2011-04-11 14:14:06.251 LittleTipperPro[1419:707] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<UIViewController 0x19b400> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key numberOne.' *** Call stack at first throw: ( 0 CoreFoundation 0x3697464f __exceptionPreprocess + 114 1 libobjc.A.dylib 0x3101bc5d objc

TIFF image format for iphone application

余生长醉 提交于 2019-12-11 10:45:48
问题 I am working on iphone app and i need to save image into .tiff format. It is possible to save image into png format using UIImagePNGRepresentation method and JPEG format using UIImageJPEGRepresentation. But i need to save signature captured by imageview into tiff format. I unable to use NSImage class so that i can call TIFFRepresentation method. How can i do it.Send me suggestion... Thanks in advance... 回答1: I don't know what you mean by "captured by imageview". The means to save as TIFF wasn

Get Mobile Number from iPhone

╄→尐↘猪︶ㄣ 提交于 2019-12-11 08:54:01
问题 Am I able to get the user's mobile number of the iPhone device? (of cause without asking the user for this information) 回答1: No. Apple's APIs do not provide access to this information. What's more, attempting to get this information without asking the user is generally considered a huge breach of privacy. 回答2: You could try to look it up in the address book if you know who the user is. Otherwise, yeah, the easiest thing to do is ask the user to enter it and store it as a preference. 来源: https

SQLite 'no such table' error

冷暖自知 提交于 2019-12-11 08:12:21
问题 I'm noob here but, why is it i'm getting this error? I DO have a table named Team in an SQLite called Team.sqlite! Is there anything else I need to provide? ERROR --------------- 2009-12-23 23:17:05.277 PitScout[6690:207] *** Assertion failure in -[Team addTeam], /Users/******/Desktop/PitScout/Classes/Team.m:90 2009-12-23 23:17:05.280 PitScout[6690:207] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Error while creating add statement. 'no such table

iPhone SDK on PowerPC?

会有一股神秘感。 提交于 2019-12-11 08:11:25
问题 Does iPhone SDK 3.0 or 3.1 support Power PC machines having Leopard 10.5 or above? If not then what's the solution for the same results, I have a Mac with Power PC and Panther. I will upgrade to Leopard and install iPhone SDK. 回答1: The iPhone SDK only works on Macs with Intel processors. If you want to save money, you might be able to get the iPhone SDK working on a Hackintosh, but building a Hackintosh may be illegal and applying software updates will be annoying. I suggest looking for a

warning no-method descriptionWithCalendarFormat:timeZone:locale found

人盡茶涼 提交于 2019-12-11 07:47:22
问题 I am getting this warning in xcode 3.1.3 iphone os 3.0. This method is also not available in the NSDate class. But I am getting the date from this method. Can anyone please tell me How can I get rid of this warning???? 回答1: You'll want to use NSDateFormatter instead. descriptionWithCalendarFormat:timeZone:locale: landed on the "non-public API" list recently, and is grounds for rejection of your app. Here's an example of how you can use NSDateFormatter: NSDateFormatter *dateFormatter = [

Is it possible to save the state of a timer in the User Defaults?

此生再无相见时 提交于 2019-12-11 07:06:49
问题 I have a label on which I am showing countdown timer. Now if I close my app the timer will be off and the label's text also. I know that we can save the label's text value. But how do we show the correct countdown when the app starts again. Suppose I close at 00:05:35 after 3 minutes when app is launched again the label should show 00:02:35 and the timer should be there for remaining countdown 回答1: Yes, simply store the time at which your app was closed and the time left to count down in

Can't attach CSV file to iPhone Mail application

懵懂的女人 提交于 2019-12-11 06:49:42
问题 The code below works perfectly to send text (.txt) attachments via the mail application (textfile.csv needs to be modified everywhere with textfile.txt). However when I try to attach csv files it does not work at all (the mail application opens up showing the icon of the textfile.csv but when the mail arrives it has no attachment (nor the data is displayed within the message body). No difference if I change the mime type to "text/plain". I am puzzled... What am I doing wrong?? Any ideas

iPHONE: This is not a test user accout please create a new account in the sandbox environment ERROR

℡╲_俬逩灬. 提交于 2019-12-11 06:48:09
问题 I have created an iphone application with in-app purchase. 5 out of 10 users are reporting the following message when they try to buy something using in-app purchase: This is not a test user accout please create a new account in the sandbox environment. I have tested the in-app purchase and I never got such error. any clues? any help is appreciated. thanks. 回答1: Is this an ad-hoc or distro build? Is the product cleared for distribution in iTunes Connect? You'll see that message if you try to

Error while executing symbolicatecrash command “Can't exec ”/usr/bin/xcode-select“: No such file or directory at /usr/bin/symbolicatecrash”

别说谁变了你拦得住时间么 提交于 2019-12-11 05:45:15
问题 My application get crash in apple's testing phase. I have crash log. When I am execute symbolicatecrash command, I get an error Can't exec "/usr/bin/xcode-select": No such file or directory at /usr/bin/symbolicatecrash or some how command get executed then it shows same crash file. My .app & .dSYM files are in same directory. I don't know what is problem. kindly help me in solving above issue. Thanks. 回答1: xcode-select is missing from /usr/bin. Try installing XCode again, and making sure you