iphone

How is the DataHash value calculated for files in an iphone backup?

iTunes creates a file, Manifest.plist, in the backup directory which amongst other things contains a list of files and a data hash values for each file. The data hash does not seem to be a straight forward SHA1 of the file data. How is this value calculated? ...

Monotouch Classes

What does MonoTouch.Foundation.Register do? For example: [MonoTouch.Foundation.Register("CalendarDayViewController")] When do I have to add the above? For a .xib to recognize it? Or in place of a .xib? ...

best way to store list of websites on iphone app

By best I mean most efficient. So don't go on about subjectiveness. I have a list of websites and I want to store the list on the iphone locally, there must be an URL, title and a small image (like 32x32 max image size). I don't think I should be using CoreData for this. Should I be using a plist? EDIT: Efficient's definiton i though w...

In-app settings controlled by plist?

Is there a library or good tutorial which covers creating in-app settings, like this: http://img.skitch.com/20090625-s8bf6ahybwe3cesd1id38h3nt.jpg What I would like is if it: doesn't use the built-in Settings app, and does not replicate it's settings in the Settings app is controlled by a plist file with various Dictionaries and Array...

iPhone: UITableView not Displaying New Data After Call to reloadData

My problem is that the cell.textLabel does not display the new data following a reload. I can see the cellForRowAtIndexPath being called so I know the reloadData call goes thru. If I log the rowString I see the correct value so the string I set label text to is correct. What am I doing wrong? I have following code : - (UITableViewCell...

iPhone SDK math - pythagorean theorem problem!

Just as a practice, I am working on an app that solves the famous middle school pythagorean theorem, a squared + b squared = c squared. Unfortunately, the out-coming answer has, in my eyes, nothing to do with the actual answer. Here is the code used during the "solve" action. - (IBAction)solve { int legoneint; int legtwoint; int hy...

iPhone SDK: How to create a UITextView that inserts text where you tap?

I'd like to create a UITextView that you can tap anywhere within it and start typing at that location. The default behavior of the control is that typing starts where the last character ended. So, if I had a UITextView with no text in it and tap in the middle of the control, I'd like typing to start there--not in the upper left. What is...

Edit Mode Delete Spinner Icon for Specific TableView Rows

I have a grouped tableview. Each section has three rows. I need to be able to delete one section at a time. Using the standard edit mode, I can make it work. However, the delete icon shows up to the left of each cell, not just the first row in each section. Is there a way to suppress the little spinner icon for all rows except the f...

Changing UILabel over time?

I have a simple UILabel on that I want to change the text of every 10 seconds. What is the best way of doing this, which let's the rest of the interface remain active? ...

xcode collect2: ld returned 1 exit status - how to resolve?

From what I have read this is supposed to be when the linker (not exactly sure how that works) can't find a symbol. the symbol in question is: SCNetworkReachabilityCreateWithAddress as can be seen from the full error message below. the thing is that the correct framework is added to my target. xcode recognises the symbol OK, i.e. ther...

Why doesn't the SplitView iPhone template have a nib file for the RootView?

I'm diving into iPad development and am learning a lot quickly, but everywhere I look, I have questions. After creating a new SplitView app in Xcode using the template, it generates the AppDelegate class, RootViewController class, and DetailViewController class. Along with that, it creates a .xib files for MainWinow.xib and DetailView....

WSMethodInvocationSetCallBack symbol not found after importing files generated from WSMakeStubs

Hello, I am pretty new to Objective-C, and I am trying to write an iPhone app to call a simple web service. I used WSMakeStubs to point to my WSDL file, and it generated 4 files for me... WSGeneratedObj.h WSGeneratedObj.m CtServices2.h CtServices2.m I added only the WSGeneratedObj.h and WSGeneratedObj.m files into a new iPhone app,...

jQTouch disable scrolling, enable scrolling, to disable scrolling

I'm working with jQTouch and I'm using the animations to link to different href #ids on the same page. On some pages I would want to disable scrolling, and others I want to enable scrolling. By setting disabled scrolling onload then enabling it onlick to another id it will work. However, I cannot switch back to disabled scrolling. Any id...

How do I add a custom view to iPhone app's UI?

I'm diving into iPad development and I'm still learning how everything works together. I understand how to add standard view (i.e. buttons, tableviews, datepicker, etc.) to my UI using both Xcode and Interface Builder, but now I'm trying to add a custom calendar control (TapkuLibrary) to the left window in my UISplitView application whi...

How to unset delegate on UIView setAnimationDelegate: call?

I am receiving crash reports that appear to be from a UIView animation calling a delegate that has been dealloced. Thread 0 Crashed: 0 libobjc.A.dylib 0x334776f6 objc_msgSend + 18 1 UIKit 0x31c566c4 -[UIViewAnimationState sendDelegateAnimationDidStop:finished:] 2 UIKit ...

Not drawing outside bounds when clipToBounds=NO

I am drawing lines on a map, and I notice that my annotation view isn't covering the entire area of the lines (which is fine, as long as I can draw outside the bounds of the view). Here is a picture of what I'm experiencing. The clipToBounds property is set to NO for the annotation view, and I've added a semi-transparent color to the b...

How can I make a UIButton "flash" (with a glow, or changing its image for a split second)

I tried just making the image switch to black and then use sleep(1) and have it go back to the original image, but the sleep doesn't work at the right time, and I can't even see the black flash it goes so fast. [blueButton setImage:[UIImage imageNamed:@"black.png"] forState:UIControlStateNormal]; sleep(3); [blueButton setImage:[UIImage ...

How to allow tap-to-focus on the camera using an overlay

The standard 3GS iPhone camera includes tap-to-focus (I can tap to the region I want to focus on). However when I use a custom overlay using the UIImagePickerController class, the tap to focus does not seem to work. Everything else in terms of capturing images programmatically etc is working btw. Note that my overlay view is only a smal...

What kinds of questions are Technical Support Incidents for?

Last year I received two "Technical Support Incidents" in the iPhone developer program, but when I went to renew I found that I would lose them. I have another two for this year, but I'm not really sure about the kind of problems that can be solved by using them. What kinds of questions are the best use of these Technical Support Incid...

Is it possible to download a .zip file into iPhone when user clicks a link inside UIWebView?

In a new app, I plan to let users download their own files and stored them inside iPhone. The process is typically: iPhone present a web page by UIWebView, in which there are several links to .zip files the user browser the page and click on one of the .zip file link iPhone downloads the file into the iPhone document folder, closes We...