iphone

Submitting AddHoc iPhone App Binaries to Apple App Store

Hey I have taken over from a developer who submitted Add Hoc Build Binaries to the app store instead of creating a new binary with an app store development provisioning profile. Can anyone tell me what will happen to these apps? So far they they are fine, approved and selling with the added benefit that we are able to test the actual b...

Apple Push Notifications - When Registering for Notifications no Callbacks are received at all

I've gone through all the steps as specified, am using a dev certificate with APN enabled and am calling registerForRemoteNotificationTypes: with the right flags in my app delegate. Still, neither application:didRegisterForRemoteNotificationsWithDeviceToken: nor application:didFailToRegisterForRemoteNotificationsWithError: are being cal...

iPhone - Apply landscape transform to UIViewAnimationTransition

Hi I apply the following transform to my view to display it in landscape mode. CGAffineTransform transform = CGAffineTransformMakeRotation((90.0 * M_PI) / 180); transform = CGAffineTransformTranslate(transform, +80, +80); Which works fine, now I have two or three other views I want to display in landscape. I would like to animate bet...

iPhone's UILabel with URL detection

I'm looking for an iPhone control that can simply display some text and detect URL's (http, email, tel) inside that text. UILabel doesn't support URL detection. UITextView can do that, but it's too heavy for use in chat application that I'm developing. Any suggestions will be appreciated. ...

how to show UIalertview while application is running but iphone is locked ?

i want to show a alert when my app is running but phone is locked..we can say in power save mode. is there a way to show alertview without Push-Notification service when phone is idle and app is running. ...

[iPhone] AvAudioPlayer setting delegate to nil releases the delegate object?

@implementation MyClass -(id) init { NSString *path0 = [ [NSBundle mainBundle] pathForResource:@"myfile" ofType:@"m4a" ]; mSound = [[AVAudioPlayer alloc]initWithContentsOfURL:[NSURL fileURLWithPath:path0] error:NULL]; mSound.delegate = self; } -(void) release { mSound.delegate = nil; //<- this line causes MyClass r...

iPhone - How to return year as an integer from a given date?

Hi all, I'm trying to return the 4 digit year from any given date as an integer. I'm not strong with the NSCalendar or NSDate functions, but have tried using them with components from date and date formatters with no success. Thanks. ...

iPhone, show NSMutable Array containing NSStrings in UIPickerView

I have a method with the following code: NSMutableArray *pickerArray = [[NSMutableArray alloc] init]; int i; for(i = 1; i <= 7; i++) { NSString *myString = [NSString stringWithFormat:@"%@", i]; [pickerArray addObject:myString]; } for(i = 1; i <= 7; i++) { NSString *fieldName = [[NSString alloc] initWith...

IPhone View Controller Refactoring

I have a very complex game view with some custom views and some standard controls in the view. When some actions happen, i want to show a different view within the same area. What i have done is i have created two view objects in the view and incorporated the two views separately. As actions happen, i hide / unhide the views i need and i...

Is there some way to determine the client to my HTTP SOAP API currently?

I know that user agent can be faked easily when connecting through HTTP. I want to ensure access to my SOAP API only from iPhone devices. We don't know how many users will be using this when it is released but it might be a lot and we can't handle traffic from outside of the devices. Any other means to prevent this? ...

Passing a Property to a function and setting the value to be retained

I have two properties setup as ViewControllers that each use different NIB file. (Male and Female Models, will function the same but are setup visually different.) I want to have one function to create the ViewController based on the NIB Name and ViewController I pass in. What's happening is the ViewController property is not being r...

iPhone Reachability

I am trying to cover my bases with reachability so that my app doesn't get rejected by the App Store. I am familiar with the Reachability class that Apple provides in sample code. My question is, how best to implement this. I've seen that checking if the WWAN is accessible is not always best because it may be turned off for power cons...

Setting font and font-size of title bar text in a UITableViewController

I have a simple navigation based application for the iphone/objective-c within various UIViewControllers that are pushed into view, I can set the text in the title bar using something like self.title = @"blah blah blah" Is there a way to control the font and font-size of the title in the title bar text? thanks! ...

Caption update on button causing IPhone app to crash

Hello, I'm currently teaching myself Objective-C and Iphone Development using the very good 'Begining IPhone Development'. I have been playing around with one of the sample applications and I am trying to update one button with text from a text field when another button is pressed. I have set up my Actions and links and all that jazz....

iPhone and NSUserDefaults

In my viewWillLoad: method I'm currently doing something along these lines: - (void)viewWillAppear:(BOOL)animated { NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults]; if ( [defaults boolForKey:@"enabled_preference"] ) { ... } else { ... } [super viewWillAppear:animated]; } If I build and...

Convert excel document (xls) to a plist

I have a pretty straightforward excel document in which I need to use the data in an iPhone app. The xls document has 6 columns, 200 plus rows. I would like to create a plist from the xls document and other than manual copy/paste, is there a means to convert one to the other? Anyone written a macro on the excel side or a utility (per...

HOW TO: Layout images in a view that mimics the layout of application icons on the iPhone?

The iPhone shows applications icons, with the application name below ea. icon, on the screen 4 across and 4 down. What is the best way to replicate this type of view in a custom iPhone application? For example, I'd like to show a grid of players in a game I'm developing in a UIScrollView that shows a thumbnail of each player and their ...

Integration of Facebook Group Wall in iPhone app

Hi all, Is it possible to integrate a wall of a specific Facebook group into an iPhone application. Is it possible to do using Facebook connect? or any other libraries? The task is to display the wall of a group. Can we bypass sign up and display the activity on the wall on the tab? Would it be possible for a registered FB user to mak...

How can I present information from normalized data entities in my tableView cells?

I'm currently thinking about the modeling of data in an iPhone app. My first instinct is to try to normalize the data into entities. For example a Professor entity might look something ilke this: @interface Professor : NSManagedObject { } @property (nonatomic, retain) NSString * profID; @property (nonatomic, retain) NSString * firs...

Blog for learning Objective-C

Are there any blogs dedicated to Objective-C and iPhone development? ...