iphone

PHP/HTML: 500 Internal server error...?

The code provided in the link has problems. When trying to go to the real webpage, it gives me a 500 internal server error. What is wrong with the code? Anybody knows? http://www.gdscei.com/myphp.txt I am using iWebKit. (I know you cannot read the text, it's Dutch. But I am not seeing any problem with pure text.) ...

Knowing which image in a UIImageView Animation

Is there any way to know which image is currently being displayed in the built in animation within a UIImageView? I have 5 images which I need to animate through. The UIImageView provides a simple method to do this through the animationImageView.animationImages = [NSArray ...]; animationImageView.animationDuration = 5; animationImageVi...

Core Data: re-setting to-many relationship

Hi, I have created model which you can see there: http://i.imagehost.org/0836/2009-11-08%5F14%5F37%5F41.png I want to store information about sound categories and some sample sounds for each category. Category has Name (NSString) and SoundsRelation (NSSet of NSData, which represents sounds). Here is the problem: For example I have som...

How can I load a subview separately?

Hi guys, I have a MainView with a lot of subviews! In one of that subview there is a WebView that check if there is a connection. The problem is that check connection ALWAYS at the startup of my app.. I want load this subview only when is opened...is that possible?? this is my code: MainView.h #import <UIKit/UIKit.h> #import <Foundat...

page controller

I have a problem with removing unused pages from an array: NSMutableArray *controllers = [[NSMutableArray alloc] init]; for (unsigned i = 0; i < [descriptionsList count]; i++) { [controllers addObject:[NSNull null]]; } self.viewControllers = controllers; [controllers release]; [self loadScrollViewWithPage:0]; [self loadScrollVie...

Calculating sum for decimal values via Core Data not working properly?

Hi everyone, first time I post to this round, so please bear with me if I don't follow all the rules properly. I am writing an app for the iPhone (OS 3.1) and am trying to write some code which lets me add decimals. I have a Core Data entity called SimpleItem with a amount attribute. Here is the test case I wrote: // Create and config...

Does the iPhone has AJAX and jQuery support?

Does the iPhone has AJAX and jQuery support? I am developing a chatbox for iPhone with these two. Are they supported on MobileSafari? ...

How to detect sound frequency / pitch on an iPhone?

Hi I'm trying to find a way to detect sound frequency being recorded by iPhone's Microphone. I'd like to detect whether the sound frequency is going up or down. ...

IPHONE: Saving and Retrieving an Dictionary of Dictionaries from a plist

Hi, I have a main dictionary where each entry is a dictionary. I need to save this to a plist and then later retrieve its contents. This is what I am doing to save the dictionary // create a dictionary to store a fruit's characteristics NSMutableDictionary *fruit = [[NSMutableDictionary alloc] init]; [fruit setObject:quantity forKey:...

Get UUID without iTunes

Hi, I am looking for a way to extract my iPhone (OS v3.0) UUID without using iTunes. I tried "UUID Revealer" from Cydia Store but that is not working on my system. I could SSH with WinSCP and I have a Terminal Program Installed. Any chances using one of those tools (or another one) to bring to light my UUID? Thanks ...

Filter contacts in iphone address book

I've created an address book copy with ABAddressBookRef addressBook = ABAddressBookCreate(); CFArrayRef people = ABAddressBookCopyArrayOfAllPeople(addressBook); CFMutableArrayRef peopleMutable = CFArrayCreateMutableCopy( kCFAllocatorDefault, CFArrayGetCount(people), people ...

iPhone SDK: How/when should I release a UITableView delegate object?

I am using a custom class as the delegate and datasource on a UITableView. I'm doing (something like) this in my viewDidLoad method: MyClass *myObject = [[MyClass alloc] init]; tableViewOutlet.delegate = myObject; tableViewOutlet.dataSource = myObject; Surely I need to decrease the retain count on myObject somewhere? But calling [my...

Shake iphone to view random html files

hi every , i have 20 HTML files ok ? i am going to shake the iphone , after shook , one of 20 html files shows up as random . i don't know random value on the objective C . can u help me ? here is my code : #pragma mark - - (void)accelerometer:(UIAccelerometer *)accelerometer didAccelerate:(UIAcceleration *)acceleration { ...

Convert Object to String iPhone SDK

Hello, I have got something strange: This Code does NOT Work: cell.imvstatus.image = [UIImage imageNamed:[[tutorials objectAtIndex:indexPath.row] objectForKey:@"image"] ]; This code works: cell.imvstatus.image = [UIImage imageNamed:@"ROR.png" ]; And in the object there is the value "ROR.png" Whats the problem at the above one? How c...

XCode open two editor windows with same file

Is it possible to open the same file in two separate windows in XCode. I can open a file in one window and the same file in the main xcode editor window, but I wanted two separate fulltime editor windows. ...

iPhone app loses file

I am writing an iPhone app – a client for some social network. The app support multiple accounts. Info about accounts are stored in a keyed archive. A method used for saving: - (void) saveAccounts { NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); NSString *path = [paths objectAtIndex:...

Number of objects in an NSArray

Hi, I was wondering if there was any possible way to get the number (count) of objects in an NSArray Object ...

How do I check if a WebView is loading a specific page?

Hi guys! I want check if my WebView is loading a specific html page locally (for example index2.html). Is that possible? Thanks!! ...

iPhone sdk pass messages between view controllers

Hi, I was wondering what is the best practice for an application flow in iPhone development. How do you pass messages between ViewControllers? Do you use singletons? pass it between views or do you have a main controller for the application that manage the flow? Thanks. ...

UItabBarItem highlight state image

I'd like to be able to change the highlighted state image on an UITabBarItem when it is selected? Is it possible to subclass and access this? or do I need to roll my own navigation code? -> start edit I didn't articulate what I was looking for earlier. I am looking for the semi-transparent white overlay reference that the device adds to...