iphone

UITextView like iPhone Notes application

I am trying to recreate the Notes application. So far I got the following: textView = [[UITextView alloc] initWithFrame:CGRectMake(25.0, 30.0, 295.0, 214.0)]; textView.delegate = self; textView.backgroundColor = [UIColor clearColor]; textView.font = [UIFont fontWithName:@"MarkerFelt-Thin" size:19.0]...

Best practice to display POI in iPhone's MapKit?

Assuming I have a database of POI with their respective coordinates (longitude & latitude). What would be the "standard" way to display the POI as annotations around the user's current location? To elaborate: Given a zoom level, I guess I have to search through the database for all POI whose distance to the current location < a certain...

Popping multiple levels in UITableViewController

I would like to be able to pop multiple views from a UITableViewController stack. For example in the Apple DrillDownSave example, when viewing Level 3 to go back to Level 1 or when viewing an Item to go back to Level 2 when a button is pushed. I tried: [self.navigationController.parentViewController.navigationController popViewContr...

Get position of the "viewport" in mobile safari?

Is there a way to determine the position of the "viewport" in mobile safari on a web page? Like x, y, w, h pixel positions of what the phone is currently seeing on the page? ...

How to display custom view in UIActionSheet?

I have a UIView with a date picker that I'd like to display in an action sheet. I'm using the following code: -(IBAction) button_click:(id)sender{ //UIActionSheet *sheet = [[UIActionSheet alloc] initWithTitle:@"the title" delegate:nil cancelButtonTitle:@"Cancel" destructiveButtonTitle:@"Destructive" otherButtonTitles:@"other", nil]; U...

Passing html parameters to server odd problem

I am having a weird problem with sending data back to my server. This is the code I am using: NSString *theURL =[NSString stringWithFormat:@"http://www.xxx.com/confirm.asp?theID=%@&amp;theName=%@&amp;empID=%@&amp;theComp=%@", theConfirmNum, tmpNBUserRow.userName, labelTxt.text, theID]; NSLog(@"%@,%@,%@,%@", theConfirmNum, tmpNBUs...

When to release the model(representedObject) of the corresponding UIViewController.

Hi, In AppKit we have "representedObject" available through NSViewController, this representedObject is generally set to ModelController or the model which the NSViewController displays, this works great with bindings as you just set the new representedObject and model details are updated in the view, BUT in case of iPhone (UIKit, with ...

Is it possible to take 2 sounds and save them as one?

Hi, Is it possible to take 2 sounds and save them as one sound file? Thanks. ...

Does the iPhone OS4 API do this? (bluetooth)

get an array of bluetooth ID's Broadcast the bluetooth signal manually ...

iPhone Mapkit: How can I get a real business name/address from a longitude/latitude?

I'm writing an iPhone application and trying to determine how to find a business name/address from a user's current GPS location (longitude/latitude). For example, if someone if using the application from inside a Starbucks, how can I find this out from their location? Is there a way to do this using mapkit or any API/Webservice? Many Th...

iPhone, is there any drawing sketch framework library can be use ?

hi all, I want build a sketch pad app on iPhone, I assume that this type app has already been developed long time , maybe some open source code can be use for this purpose ? anyone can give tip on this field ? Thanks ... ...

NSMutableArray count method show the NSMutableArray is count 0?

This is my init method: -(id)init{ self = [super init]; magicNumber = 8; myMagicArray = [[NSMutableArray alloc] initWithCapacity:(magicNumber*magicNumber)]; NSLog(@"this is the magic Array: %d", [myMagicArray count]); return self; } This is the .h: @interface Magic : NSObject { NSMutableArray *myMagicArray;...

Selecting an entire photo album with UIImagePickerController

Hello all, I was wondering if there's a way to select an entire photo album with UIImagePickerController. What I have now is a UIImagePickerController with sourceType of PhotoLibrary. It shows the Albums, and navigates inside an album to select a single image... What I want to do is when the user selects the Album, instead of going in...

UITableView section index overlaps search bar

Hi: I want to display a section index in an UITableView with a search bar in the table view header (not section header). But the index strip is now overlapping the search bar. Is there an elegant solution to avoid this and let the index start below the table header? ...

Core Location question....

This tutorial on mobileorchard.com uses 2 classes (or 2 sets of .h and .m) to implement core location. Can I just use everything there in my existing class? How would I do that? Can I use my existing app delegate as a location delegate as well? Also, is the - (id) init { self = [super init]; if (self != nil) { self.lo...

Urban Airship Tags issue

I modified the alias sample code from: [request addRequestHeader: @"Content-Type" value: @"application/json"]; [request appendPostData:[[NSString stringWithFormat: @"{\"alias\": \"%@\"}", self.deviceAlias] dataUsingEncoding:NSUTF8StringEncoding]]; to: [request addRequestHeader: @"Content-Type" value:...

How to export Instrument's CPU Monitor's statistics to be usable in Excel or Numbers?

I require statistics of CPU Load of my iPhone apps. I am trying to use Instrument to see the CPU Load, but all I see in Instrument program is rendered graphs. I need these statistics data in raw numbers so that I can put all of them on graphs using Excel or Numbers. Is there a way to export these data in such a way? Or do I need other pr...

Message sent to deallocated instance which has never been released

Hello, I started dealing with NSOperations and (as usual with concurrency) I'm observing strange behaviour. In my class I've got an instance variable: NSMutableArray *postResultsArray; when one button in the UI is pressed I initialize the array: postResultsArray = [NSMutableArray array]; and setup the operations (together with...

Basic concept: communicating between two views?

How do i send information between two views (and hence, two classes)? Am I looking for my app delegate? Is there a better or alternative way? ...

How to build a bar on the keyboard

I want to dismiss keyboard by click dismiss button ,How to build a bar on the keyboard? like this: ...