iphone

What's better: Writing functions, or writing methods? What costs more performance?

Currently I am making some decisions for my first objective-c API. Nothing big, just a little help for myself to get things done faster in the future. After reading a few hours about different patterns like making categories, singletons, and so on, I came accross something that I like because it seems easy to maintain for me. I'm making...

iPhone notification icon

On my program icon i want to show how many show a number, like on the AppStore program icon, where it shows how many updates are available. How can i implement this on my own program icon? ...

How can I get a precise time, for example in milliseconds in objective-c?

Is there an easy way to get a time very precisely? I need to calculate some delays between method calls. More particular, I want to calculate the speed of scrolling in an UIScrollView. ...

SQLite reports on iPhone SDK

What is the preferred method of creating simple reports on the iPhone-SDK platform? I'm thinking that ideally I could create PDFs and display them, is this feasible? Are there some built-in facilities, some available libraries? ...

Architecturally, how are iPhone applications installed from the AppStore?

When we hit that "install now" button via the AppStore, I am curious what is the process behind getting the app onto the iPhone? Does it download a compressed zip? pkg? and does a XCOPY equivalent ? ...

iPhone - Problem with sending view to back

When I try to send a view to the back, it hides some of the buttons and labels in my view controller. The view I am sending to the back is a UIImageView. Does anyone have an opinion of what might be the problem? ...

Keyboard Iphone

Is possible to know when the user touch the keyboard iphone? When the user touch some button from keyboard... :/ ...

How do I turn off slow motion in the iPhone simulator?

I don't know if it's because I'm using a Mighty Mouse or what, but I keep accidently turning on Slow Motion when using the iPhone simulator. How the heck do I turn it off? ...

iPhone - Problem with UITextView

This is probably an easy thing to do, but I just can't figure it out - how do I end editing athe textview? how can I get the keyboard to disappear? or do I have to click outside it to make it go away? ...

Touch in cocos2d?

Cocos2d question?? How do you change the touch type? Look below image = [MenuItemImage itemFromNormalImage:@"image1.png" selectedImage:@"image2.png" target:self selector:@selector(step1:)]; Menu *menu = [Menu menuWithItems:image, nil]; image.position = cpv( -135, -185); [self addChild: menu z:2] step1 is a void defined to do somet...

Need/want to pass an NSError** as an argument to performSelector

I want to invoke a selector of a method that has the usual NSError** argument: -(int) getItemsSince:(NSDate *)when dataSelector:(SEL)getDataSelector error:(NSError**)outError { NSArray *data = nil; if([service respondsToSelector:getDataSelector]) { data = [service performSelector:getDataSelector withObject:when withObje...

Adding UIControl subclass in loadView crashes iphone app

Hi all, I'm new to iphone and experimenting with the platform. I have a root view controller which loads it's view from a nib. I accidentally uncommented the 'loadView' method in this class, and now the app crashes - is this because if a view controller is initiated from a nib then you can never have a loadView implementation? Taras ...

how to customize uitableview

Hi, I need to customize each cell in a UITableView (like each cell will have UITextfield and UIButton). Could you let me know if there is any good article on that? Thanks. ...

Which iPhone app ad solution gives the best rates?

I have a free iPhone app downloaded by 3,000 users, most of whom use my app at least once per day. So I plan to show ads in my app. Which ad solution is best? I looked in some sites, but no one is giving clear details about CPMs. How much will I get for 1,000 impressions using different ad solutions? ...

iPhone / .NET WCF Interoperability

I'm architecting a .NET "web service" and an iPhone application that will consume these services. I'm curious if there are any best practices for architecting the protocol for exchanging data between the two. SOAP-based web services feel too heavy to me for an iPhone app. Perhaps REST, JSON, POX instead? Certainly the specifics of th...

How do you restart a query using NSFetchedResultsController

I'm finishing up the Core Data tutorial, and it suggests trying to convert to using a NSFetchedResultsController. So I've got it so that I can query the existing data, but when I add a row at the beginning, tableView:cellForRowAtIndexPath calls NSFetchedResultsController.objectAtIndexPath, but that still returns the old zeroth object in...

iPhone Developer Program Enrollment taking more than 24 hours?

How long did it take to get through the entire iPhone Developer Program Enrollment process (Activation code, etc)? Apple says it may take up to 24 hours for the Activation code to arrive in your inbox, but I have heard stories of people waiting for weeks. 24 hours has elapsed since the initiation of my own enrollment, much to my disencha...

UIScrollView

Hi All, I am using UIScrollView for zooming an image. While to zoom out the image i want it to be put on double tap. So my question is can it be possible to zoom out zoomed image on double tap. (i am able to detect the double tap on zoomed view). Which property we can use for this of Scroll View. Thanks in advance. Regards, Vishal ...

UIScrollView Disappears From Interface Builder?

i have interface builder 3.1 but i don't see any UIScrollView and UIAlertView is something missing there?how can i get them in interface builder. i want a view with 50 labels and i want to add them via Interface Builder not using the code please help... ...

How many NSTimers is too many?

In an iPhone OS device, how many simultaneously running NSTimers would be too many? I have a bunch of routines being called by a single timer firing 25 times a sec, and things are pretty choppy, slow, and heavy. I am thinking about adding one or more extra NSTimers to distribute the work load a bit but I am concerned about how many would...