iphone

TTTabItem in three20 icon not working?

I have been trying to get TTTabItem to work with images. And I dug up that you can set the icon to an image file. This is my implemenation: TTTabItem *tab1 = [[[TTTabItem alloc] initWithTitle:@"Item 1"] autorelease]; tab1.icon = @"bundle://icon_eat_min.png"; filterBar.tabItems = [NSArray arrayWithObjects: ...

Must I do something special in order to have sections with an NSFetchedResultsController?

I created a fresh project with a core data template. then I added a employee entity with a firstName string attribute, and populated the persistent store with 100 employees and lots of different first names. In the RootViewController where the FRC is created, I set the sectionNameKeyPath like this: NSFetchedResultsController *frc = [[N...

how can i display a string in textView

i have got some data,i converted it into string but it is not displayed in textView..Can someone help me with this?This is what i have written.... aStr = [[NSString alloc] initWithData:data encoding:NSASCIIStringEncoding]; [mTextView setStringValue: aStr]; is there some other method to do this? mTextView is an outlet here of type NSTe...

iPhone CoreData: How to group fetched results by day?

Hi! I am developing an iPhone App with CoreData. One of my entities has an NSDate property named 'time'. It stores times to the minute/second. As my sections i'd like to have the date to the day. So if there are to entries '2010-06-14 8:00' and '2010-06-14 11:00', i'd like them to be grouped to '2010-06-14'. Currently I just use @"time...

Can NSUserDefaults be used for pausing the application during a phone call ?

Friends, currently I dont have iphone to test and using Simulator for testing purposes. I am Just curious to know whether an application continues to run even after a phone call.. here i have no option to test this from simulator. If it terminates then how can i pause things.. and continue after a phone call. Is NSUserDefaults can be us...

Problem with value of SIngleton in iPhone app

Hi have a problem with singleton Class in iPhone app. I have create a simple class for visualization of NSString value. My problem is generate when i try to stamp a NSString in a textVIew. I call my methods and the value of string in Singleton class is (invalid) (i have tested it with debug). Can you help me with the code solution. my c...

How to stop body background displaying between two tables in Iphone Safari

The following markup when viewed in Safari on Iphone and Ipad displays the body background color for 1 pixel between the two tables. What is this and how do I stop it? <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; <html xmlns="http://www.w3.org/1999/xhtm...

Does it make sense to use a NSFetchedResultsController without an UITableViewController? How are they related?

I mean... could I also just create a plain old UIViewController and then set up a UITableView myself, plus an NSFetchedResultsController? How much do UITableViewController and NSFetchedResultsController interact with eachother? As far as I see it, UITableViewController is NOT by default already adopting the NSFetchedResultsControllerDel...

Adding Background image to UILabel

How can i add a background image to a UILabel in an iPhone Application. I've tried to do it through IB but with no result. Can anybody help me.. Looking forward to your reply. ...

Using same name for Core Data object as a Private Framework Object

Hi all, I've got a core data-based app for iPhone and I'm getting the following warning: objc[2472]: Class Property is implemented in both /System/Library/PrivateFrameworks/Notes.framework/Notes and /var/mobile/Applications/B69194FF-448F-48AD-A78D-DDB8935F/AmcCalc.app/AmcCalc. One of the two will be used. Which one is undefined. When...

UIImagePicker and Memory Warning Level 1

Hello, Whenever I use a UIImagePicker to take a picker in my app, I get the following message in the debug console: Receive memory warning. Level=1 I am using the following code: imagePickerController = [[UIImagePickerController alloc] init]; imagePickerController.delegate = self; imagePickerController.sourceType = UIImagePickerCon...

Why am I getting this warning about my app delegate and CLLocationManageDelegate?

Observe this perfectly simple UIViewController subclass method: -(IBAction)launchSearch { OffersSearchController *search = [[OffersSearchController alloc] initWithNibName:@"OffersSearchView" bundle:nil]; EverWondrAppDelegate *del = [UIApplication sharedApplication].delegate; [del.navigat...

Application quit unexpectely when I run it with Instruments iphone sdk

Hi all, My application is crashing when I'm launching it in Instruments. No message is shown when I'm pressing Ignore. What could be the reason behind this? The application is running fine in simulator. ...

UITableView with multiple sections : section with 1 row, deleting the row crashes the app

Hi, I have a tableView with multiple sections. When a sections contains only one row, and if I try to delete that row, my app crashes while executing this code : [tableView deleteRowsAtIndexPaths:[NSArray arrayWithObject:indexPath] withRowAnimation:YES]; I get this exception : *** Terminating app due to uncaught exception 'NSRangeE...

MKMapView regionWillChangeAnimated Zoom or Pan?

I need to know whether a regionWillChangeAnimated occurred due to zooming or panning. I was able to figure this out for regionDidChangeAnimated by keeping track of the old region span and comparing with the new one to see if a zoom occurred. The problem with regionWillChangeAnimated is that it is called before the region changes so I...

Is a tab bar configuration view can be customized ?

I have an application with 8 tabbar items in the tabbar controller. Is there a way I can customize the layout of the "... (more)" view in which you can configure which tab bar items should appear in the main tab bar. It seems to be a table view controller but i'd like to use custom cell views and a background image. ...

iPhone: Which are the most useful techniques for faster Bluetooth?

Hi. I'm adding peer-to-peer bluetooth using GameKit to an iPhone shoot-em-up, so speed is vital. I'm sending about 40 messages a second each way, most of them with the faster GKSendDataUnreliable, all serializing with NSCoding. In testing between a 3G and 3GS, this is slowing the 3G down a lot more than I'd like. I'm wondering where I sh...

Identifying a UISegmentedControl Inside a UITableViewCell

I am trying to work with a segmented control inside a a tableview, then when a user selects an item, I'd like to show a spinner, while some info posts to a webservice. The problem that I am having is: How do I add a delegate and access the referenced segmented Control, so I can set it's alpha or visibility to NO? Also, what's the best...

iPhone: Crash in Custom Autorelease Pool

My app is crashing when I try to post images in an HTTP request. I am trying to upload images to a server. The crash appears related to my autorelease pool because the crash is trapped at the [pool release] message. Here is the crash report: #0 0x326712f8 in prepareForMethodLookup () #1 0x3266cf5c in lookUpMethod () #2 0x32668f28 i...

MKMapView Annotation Callout Button to DetailView?

Hi, I have annotations in a MKMapView with Callouts. In this Callouts there's a "Right-Arrow" Button. When clicking on it, I want to open a Detail View, an extra UIViewController with its own nib file etc. I use following code: In my MapViewController: - (void)showDetails:(id)sender { // the detail view does not want a toolbar so...