iphone

Is CALayer insertSublayer: atindex: destructive?

The documentation is not clear on what happens the the layer currently atindex:xy when using insertSublayer:abc.layer atindex:xy. My experimentation has had mixed results. My understanding is index 0 is furthest from the user (all other layers would be above that one). If I call insertSublayer:abc.layer atindex:0, and def.layer is alrea...

Getting iTMS attached country on iphone

Hello, I am getting a link to iTMS using this url : http://ax.phobos.apple.com.edgesuite.net/WebObjects/MZStoreServices.woa/wa/itmsSearch?WOURLEncoding=ISO8859%5F1&lang=1&output=json&country=ES&term=OASIS The problem I have is when I get the link to buy the song, and my iTunes store is Canada, the link is not working, ...

The best way to implement live(search as you type) contact search?

Hi guys, I'm trying to implement a better live(search as you type) contact search in my iPhone app. After doing some real device testing if found my current (non-threaded) implementation is just too slow. As far as I know there is no spotlight API for the iPhone. So I think the solution will have to be threaded so that it updates the...

passing structs over UDP weakly typed

I'm new to network programming, and am basically learning-by-doing. I'm folling Mike Ashes program "Sphere Net" from iPhone Cool Projects. I understand what's going on in the program, but I'm ready to start extending it and I expect to be sending a reasonable variety of packet types (each represented as a struct). It doesn't seem rign...

sending encrypted email

Hi, I am currently sending an email from my xcode/iphone app. The requirements are to send an encrypted email or attached file and then be able to decrypt/open the information after receipient delivery. Has anyone seen any code to help me accomplish this task? Thanks Leland ...

NSDate - Change Time Component

This is probably a silly question but I can't seem to find an answer. I am using a date picker to allow a user to enter a date and it is also setting the time to the current time (I init the picker with [NSDate date]). Is there a way to change the time component of the date? I am later calculating time intervals which returns seconds...

How can we store into an NSDictionary? What is the difference between NSDictionary and NSMutableDictionary?

I am developing an application in which i want to use an NSDictionary. Can anyone please send me a sample code explaining the procedure how to use an NSDictionary to store Data with a perfect example? ...

Codesign error: Provisioning profile cannot be found after deleting expired profile

Tried to rebuild an app that was just working yesterday. Got a message that a profile had expired, so I removed it from the iPod and from Itunes. When I chose a new profile (one with an * in the identifier), I now get an error: Code Sign Error: Provisioning Profile (long string) can't be found. What am I missing? I looked through rel...

Adding UITableView to subview when searchbar is being edited

I have a MKMapView with annotations on it and it works fine. I have a search bar as part of my navigation bar. When a user clicks on the search bar field I wanted to bring up a UITableView in code. I create a UITableView in the initialisation and want to add it to the sub view when - (void)searchBarTextDidBeginEditing:(UISearchBar *)sear...

iPhone: How to get a UIImage from a url?

How do you download an image and turn it into a UIImage? ...

How to release or nil a type-casted object?

I am a bit confused about the objects which are initialized by type-casting. Like UITextField *txtFld = (UITextField *)[self.view viewWithTag:someTag]; // // //some code here for this text field usage // // now when I am finished using this text field should I set it to nil or leave it as it is for the system to take care of it. Now ...

Why should we release ?

Hi all, I often see when we release ab object we immediately set it to nil. I know that release and nil both free the old value associated with object but in case of release it leaves the object as a dangling pointer so we have to set it to nil. So my question is if nil frees the old value of the object and set the object to nil why sh...

What to do to make a map in the iphone Application?

I am New phone Application Developer and i want to develop an Application which contains maps so will you please give me some information regarding how to load map in my application? ...

iphone BPM tempo button

i want to create a button that allows the user to tap on it and thereby set a beats per minute. i will also have touches moved up and down on it to adjust faster and slower. (i have already worked out this bit). what are some appropriate ways to get the times that the user has clicked on the button to get an average time between presses...

error: There is no SDK with the name or path 'iphoneos2.2.1' - after Xcode upgrade.

I upgraded my Xcode to the Latest version today, my iPhoneSDK OS was 2.2.1 previously. I was alerted during installation I can upgrade Xcode but iPhoneSDK cannot be upgraded. Because my Mac OS was 10.5.4. My iPod Touch runs on version 3.0. After Xcode upgrade, when I launched old projects, it says error: There is no SDK with the name or...

Where to change data for a "list" datasource in dashcode?

I created a new project in dashcode and it automatically generated a mobile web app for me with a list and sample datasources. I see two datasources, one is labeled as "datasource" and the other is "list". However I can see that the actual data in datasources is in a js file, everything is good but where is the actual data stored for "li...

warning regarding the cell of UITableviewcell

cell.image = [UIImage imageNamed:@"search_up.png"]; whenever i'm writing this statement i get warning like deprecated if i use cell.textLabel.image = [UIImage imageNamed:@"search_up.png"]; i got error how to remove this warning or error ...

Tableviecells are not getting deallocted.....Memory Management issues.

hi... I am working on an application in which uitableviewcells of uitableview are customized which contains a textfied(contains managedobject/core data), label((contains managedobject), buttons so all are customized. i am creating uitableview dynamically using sqlite. Similarly uitableview view contains more than 15 cells. Cells are d...

Will this hack make apple furious? (Will the reject my app ?)

Hi, I have taken this code from http://stackoverflow.com/questions/883208/how-to-change-background-color-of-uialertview UIAlertView *theAlert = [[[UIAlertView alloc] initWithTitle:@"Atention" message: @"YOUR MESSAGE HERE", nil) delegate:nil cancelButtonTitle:@"OK" otherButtonTitles:nil] autorelease]; [theAlert show]; UI...

how to show *.mpp files in my iphone application?

Hi, I have a problem in showing *.mpp (microsoft project files) in my app. I thought of showing in image format but i dont know how to convert it into image format. or is there any other way to view mpp files. thanks in advance ...