iphone

Can't get search bar to display in iphone application

Hi, I've trying to get a search bar to display in my application. I'm following the example show in the TableSearch sample application. I've more or less implemented it exactly the same way apart from the data. I however can never seem to get the actual search bar to display. The only other difference between my app and the TableSea...

Create a directory on an iPhone

Hi to all I want to know how to create a directory on a specified path. I used "system("path of directory");" this is work fine in Simulator but not on Device ...

Deleting UITableView sections combined with custom section headers UIViews = bug in Apple's code?

I'm trying to delete a section from a UITableView using animation and custom table section header UIViews. I use... //Deletion from my model done here (not shown) and then perform the deleteSections... [self.tableView beginUpdates]; [self.tableView deleteSections:[NSIndexSet indexSetWithIndex:index] withRowAnimation:UITableViewRow...

Is there any iPhone open source community?

Hi there, I am going to develop on iPhone platform and I think the best way to learn is to read good apps' source. Is there any open source iPhone app community? Like sourceforege or googlecode? Thanks in advance~ ...

iPhone-SDK:How to avoid Multiple Row Selection view?

Hi All, I have a table and row contents(hard coded contents). when i choose one row and see the content and then come back to same table and try to choose another row, it doesn't deselect the first row selection(by default it shows Blue selection-UITableViewCellSelectionStyleBlue), instead both the rows are being in selected mode. I wa...

Comparing Two Arrays.

I have two NSArrays, what I'm looking to do is to compare two arrays which contain strings, find the similarities and create the first array again but so they have no similarities. Just for an example something like. Two Arrays: NSArray *arrayOne = [NSArray arrayWithObjects:@"TD1", @"TD2", @"TD3", nil]; NSArray *arrayTwo = [NSArray ar...

How to save web page locally in iPhone?

Hi all, I want to see previously viewed web page in iPhone when I will offline (not connected to internet). Currently I am just opening the web page from my application by using NSURL. But when user is offline he is not able to see the web page. I have a requirement that user must be able to see the previously viewed web page from my...

Does NSThread have a separate heap? What about pthread (on iPhone)

If I detach an NSThread will Cocoa run it in a separate memory heap or memory zone? For example, if I were to detach a thread, use malloc to create a large buffer, and then let the thread exit, would I get that memory back in some kind of automatic thread cleanup, or would it be leaked? What about if I used a POSIX thread (pthread) inst...

Accessing objects in NSMutableDictionary by index

To display key/values from an NSMutableDictionary sequentially (in a tableview), I need to access them by index. If access by index could give the key at that index, I could than get the value. Is there a way to do that or a different technique? ...

Query related to cell selection for iPhone SDK 3.0

I used to have the following snippet of code in viewWillAppear method of a tableviewcontroller. What it essentially did was to start with the first row selected when the view was loaded. // Select the first row by default and set the datePicker NSIndexPath *indexPath = [NSIndexPath indexPathForRow:0 inSection:0]; [self.tableView se...

Is there a unique ID for each iPhone / iPod Touch?

Hey, Is there a unique ID like the mac address for each iPhone / iPod Touch? Do I have to ask the user for permissions to transmit such a unique id? ...

compile the entire bash shell into my app

Hi I want to know how i compile the entire bash shell into my app.I read somewhere that for this i compile its Subroutine. how? Thanks in advance ...

How to make a blinking (or flashing) cursor on iphone?

I'm trying to create a custom "blinking cursor" in UIKit, I've tried as shown below, having 2 functions that basically keep calling each other until the cursor is hidden. But this leads to a nice infinite recursion... for some reason the functions call each other right away, not each half-second as expected. I tried returning if the 'fi...

UIImagePickerControllerSourceTypeCamera problem

Hello, How to open Camera in application like the default Camera application with photolibrary in botttom of it? ...

compressed file format for Iphone

hi all, i am new to iPhone i want to ask that what is the compressed file format which is supported on iPhone. Also how can extract this file programmatically. ...

NSLog with CGPoint data

I have a CGPoint called point that is being assigned a touch: UITouch *touch = [touches anyObject]; CGPoint point = [touch locationInView:self]; I want to get the x coordinate value into my console log: NSLog(@"x: %s", point.x); When I use this, log output for this is: x: (null) I have verified that point is not null when this i...

Accessing a property in NSManagedObject causes memory spike and crash

I am writing an iPhone app which uses core data for storage. All of my NSManagedObject subclasses has been automatically generated by xcode based on my data model. One of these classes looks like this: @interface Client : NSManagedObject { } @property (nonatomic, retain) NSNumber * rate; @property (nonatomic, retain) NSString * name...

Data appears in the simulator but not in the device

I have developed a simple To-Do application with a simple database.problem is that my database only shows data in the simulator.when I load it to the phone,it doesn't show up the data.the console shows an error message saying "My table doesn't exists".hope someone can help me coz it's critical.... Thanks. ...

How can I know that my iPhone is connected to the Apple Push Notification Service?

How can I know that my iPhone is connected to the Apple Push Notification Service? Is there any way that I can see it in my iPhone? Thanks in advance. ...

XCode build settings for performance - iPhone apps

Hey Guys, Is there any articles available online where can I find some tips on improving the iPhone application performance. I have read Apple docs on Memory Management and CPU cycles, but they are not very helpful. Also can someone suggest a few XCode settings that could improve the performance of the application (release version)? ...