iphone

Subclass methods being ignored in Obj-C?

I have some confusion about an error in my Obj-C project. What I'm doing is fairly simple and don't understand what I am missing here. I am just creating a very simple method in a subclass of UIImageView, and then instantiating that class. When I try to use the method from my instance, the compiler complains it is not implemented (althou...

iPhone sdk will not compile if i use UITableView Group background color

if i use grouped table view or just use this color, i get this compilation error: The document "DetailedView.xib" could not be opened. The operation couldn’t be completed. -[NSCFArray insertObject:atIndex:]: attempt to insert nil. if i use plain tableview it works fine. also i tested on number of xcode installations and on different co...

How to check if a notification has been sent or not?

How to check if a notification (MPMoviePlayerPlaybackDidFinishNotification ) has been sent or not. Actually I have to removeObserver when a notification is sent. But when the notification is not present I need to do something else? How can it be done? Thanx ...

performance of iOS apps when compiling in debug or release / distribution mode

What are some performance differences when compiling your code in these mode? debug release / distribution are the default settings optimized for app store (distribution)? what are some ways to optimize performance even more by tweaking the settings? ...

rotating image in quartz 2d

i want to rotate image in quartz 2d around one corner..i want to make analog clock. ...

Question related to hang of view

I have my 5 th view .when i pressed home button of that, and again launch the app then it shows 5th view as per my state maintainance code then i got to 6 th view .it has 1 UIButton when i click on that button the method has this call [self.navigationController PopviewControllerAnimated:YES];this function goes me back to it's back view ...

How to embed links in a Quartz PDF View

I am using Quartz to display a PDF if my iPad app rather than a webview as I dont link the borders and drop shadow effects the webview adds. Can I still use embedded links in the PDFs? If so do I need to do anything special or will they just work? ...

Speeding up search using predicate

Hi everybody! I have an array with about 6000 entries, everyone with a date, in the form of 4 integers (year, month, day, hour). I want to find all the entries with a given day, and i'm doing like this: NSCalendar *gregorian = [[NSCalendar alloc] initWithCalendarIdentifier:NSGregorianCalendar]; unsigned unitFl...

Specify asset directory throughout app with multiple targets

Hi there, So, I have an application that has 2 targets. Each of these targets specifies a very different set of assets which populate that target's application. The idea here is that each target will build an application with completely different content, but the same core functionality. I have a reference folder for each target that h...

What's the normal way of organising a header file in Objective-C?

I do start off organising my .h files with the best intentions but somehow they get disgustingly messy. Below is an example (which isn't that bad, but i've seen much worse!). I've tried grouping sections with #pragma mark but it seems to look even messier. All the UILabels and UIButtons are required (as mentioned above) as they're sh...

iOS UIAutomation Scripting: What's the correct predicate to reference the keyboard?

Using UIATarget.localTarget().frontMostApp().logElementTree; when I know that there is a keyboard present (after tapping a text field) shows that there is a UIAKeyboard element in the hierarchy. However, it does not have a name. I'd like to get a ref to that so that I can dismiss it from the script. My best guess is to use something li...

How to download OpenStreetMap tiles from CloudMade?

how to download cloudmade map tiles? i have to download tiles with different zoom levels? how save these tiles to database for later loading? any sample code available? any help is appreciated.. ...

catch error when iphone is crashed (be aborted)

Hi Guys I tried to deploy my application in real device. But when it running , my application is crashed (be aborted). How can i catch message error to display the error what make application be crashed? Thank you. ...

How would you mark up Messages from NSNotificationCenter and Protocolls in an UML-Documentation ?

I am not really a UML-User and relatively new to OO-Programming, i just used UML if i had to and it is long ago. Now i had to write an iPhone-Software and dont really know, how to realize Messages and Protocolls in an UML-Diagramm. And.. did i understand it in the right way, that in Objective-C is just one kind of inheritance ? You can...

How can I make my iOS app show in spotlight when search for a variation of its name?

I have an iOS application which has an abbreviated name, but I would like to be able to search for the app in spotlight using either the full or abbreviated name. Is this possible? ...

Getting list of contacts from phone book in Iphone application

I just want the all contacts list in my application, in NSArray or NSDictionary object or in any other form. My intense is that my application do also have its own contacts. Now I want to show my application's contact and native contacts in my application's phone book. So I just want the list of native contacts in some way so that I can ...

iphone icons designing

before designing the icons for iphone app.... with how much resolution do i need to work. whether its 72ppi r 163ppi for iphone 3 ? ...

three20 error after adding it to my project

I have been trying to add the Three20 framework to my app. But I always end up getting this error: Undefined symbols: "___restore_vfp_d8_d15_regs", referenced from: +[TTEntityTables(TTSingleton) sharedInstance] in libThree20Core.a(TTEntityTables.o) +[TTEntityTables(TTSingleton) releaseSharedInstance] in libThree20Core.a(TTEntityTables.o...

iphone application

how to display output of html file in iphone ...

Can I open phone app using url scheme in iPhone

Hello All, Can I Open the phone app on iPhone using url scheme? if yes then how? I know I can dial a number using this - [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"tel://8004664411"]]; But I dont want to dial a number, I just want to opent the phone as I click on the phone icon on home page. Thanks Saurabh ...