iphone

Filtering Apple Push Notification

I got APNS working perfectly, after many issues with SSL. Now, I was wondering how I can filter the notifications sent to the devices. I have to do it server-side, or client-side (app) ? For example, a Soccer app that sends the latest game scores to the registered devices. By default, my device shows all notifications sent by APNS (all...

IPhone: Creating a Facebook like UI, Skinning Apps, Not following the AHIG

How do you design a UI like Facebook? Is it hard to implement a custom skin into a iphone app? How is it done? Do I need to follow apple's guideline? What if I don't want to? ...

Core Data persistent object located on Amazon S3?

I am curious if my persistent object of Core Data can be stored and retrieved using Amazon S3. I think it is a perfect combination to put your application on the cloud. Or Amazon has other services? Has anyone had any success stories to share? Edited: I know that there is no direct support of Core Data for S3, but there is ASIS3Req...

Xcode - exclude files in a custom configuration - better way?

I'm trying to come up with a way to make it easy to switch out our "mock" data services and our live ones. Basically, we'll have live servers with real web services, but for whatever reason, a developer may want to load data from static files (file urls). I figured I would solve this problem by creating categories that override the met...

Playing audio on the iPhone decoded by a third-party library

The third-party library generates sequential buffers of 16-bit signed stereo samples of any desired size. I can't figure out which framework/functions to use to play from these buffers. I've been working off the example in this answer using AudioQueue but it's obviously incomplete in ways I can't resolve (local variables are used as if t...

Getting list of bluetooth devices nearby on iphone sdk

Hi Guys, I need to be able to search for all bluetooth devices nearby and just get there ids. I don't need to pair at all. I am using iphone 2.3 beta. Is this possible l have tried using GameKit and no luck does anyone know how to do this. BOOL result = NO; if (!session) { session = [[GKSession alloc] initWithSessionID:@"SCANNER"...

NSKeyedArchiver/NSuserDefaults - saving a CGRect

Hi everyone! My app involves a user being able to drag specific items such as volume sliders and UIImage views. My goal is to be able to save the locations of the items so that the user can not have to drag the items again after re-launch. Unfortunately, I have seen errors along taking the 'saving CGRect rect = item.frame to NSuserDef...

UISegmentedControl selected segment color

Is there any way to customize color of selected segment in UISegmentedControl? I've found segmentedController.tintColor property, which lets me customize color of the whole segmented control. The problem is, when I select bright color for tintColor property, selected segment becomes almost unrecognizable (its color is almost the same a...

How do you set autosizing to flex in Interface Builder?

I have an iPhone project that I started as a Windows-based app and another View-based app. The Window app has a view which I added and I want to make the view fit within the window. In the View app the view is set to stretch. Here is what it looks like when it is off. And here is when it is on. I want to click in the middle of th...

is it possible to monitor cellular network data transfer on the iPhone?

in programmatically, is it can do? if yes how? or it not possible because 3party application can not run on background. ...

How Speech to Text conversion in iPhone

Hi Friends, Is there any way, by which we can convert speech to Text using iPhone SDK? Thanks, Krishnan. ...

iPad SDK in Leopard

Is there any way to install the iPad SDK on a Leopard machine? ...

dylib for iPhone 3.1.2 is too short, wrong cputype/cpusubtype.

I've been trying to compile a dylib to use in a little prototyping experiment however dlopen() says that my dylib is Mach-O but that the file is too short. Should it be padded with something? I have the latest everything so that shouldn't be a problem. lipo spits this out when I try to merge the i386 and armv6 arch's together: lipo: s...

best-practices for displaying new view controllers ( iPhone )

I need to display a couple of view controllers (eg, login screen, registration screen etc). What's the best way to bring each screen up? Currently for each screen that I'd like to display, I call a different method in the app delegate like this: Code: - (void) registerScreen { RegistrationViewController *reg = [[RegistrationViewContro...

how can i set the notification in tab bar in objective-c ?

I want to put the notification in the tab bar of the app to show the number of item selected for the shopping list. Is there any way to add the notification in the tab bar of app. ...

ERROR: Memory Leak, data formatters temporarily unavailable

I am developing a quiz app. I take questions from a xml file, parse it and display random questions. These are stored in NSdictionary and NSMutableArray. Also the app plays background music and sound for clicking of buttons(AVAudioPlayer). and vibration( AudioServicesPlaySystemSound(kSystemSoundID_Vibrate)) In one particular functi...

Core data images from desktop to iphone

I built a simple mac data entry tool I use with an iPhone application. I've recently added thumbnail which I added via an Image Well using simple bindings. Its a transformable data type which seems to work fine. The iPhone application however won't show the images. The attribute isn't null but I can't get an image to appear. The followi...

Debugging with iPhone How?

I have an iPhone & necessary certificates also, But don't know how to debug an application using xCode to iPhone. EDIT I have all these. I have mac mini & iPhone 3g. The question is - I don't know how to use all these certificates? I want to debug an application - having shake handling code. That I can't debug on simulator. So I just wa...

UINavigationController right usage

I've implemented UINavigationController in my iphone application as main navigation interface. When I need to add some new xib to my UINavigationController stack I have to write new method like this (example for ContactsView.xib): - (void) switchToContactsView { // lazy load if (self.contactsViewController == nil) { Con...

Setting background image of custom table view cells

Hi, I've tried numerous ways of setting the background image of an unselected table cell, but without success: 1- In IB setting the image field 2- cell.contentView.backgroundColor = [[UIColor alloc] initWithPatternImage:[UIImage imageNamed:@"list.png"]]; 3- cell.imageView.image = [UIImage imageNamed:@"list_selected.png"]; All seem t...