iphone

self.title sets navigationController and tabBarItem's title? Why?!

I do this in a UIViewController for one of my tabs: self.title = @"Welcome"; However, it's overwriting whatever I have for the tabBarItem. I have tried: self.tabBarItem.title = @"Home"; and [self.tabBarItem initWithTitle:@"Home" image:[UIImage imageNamed:@"iconHome.png"] tag:0]; But still, self.title overwrites the tabBarItem, r...

Are iPhone development profiles renewable?

My iPhone development profile is expiring soon. Should I create a new one, or will I be able to renew existing one when it expires? It seems odd that there's no renew button iPhone Dev Program page, and that devs can take action only when it expires. ...

Independent iPhone Developer Network

Hi I'm currently doing some independent development on the iPhone and Mac. Loving the freedom but the single biggest thing I miss about working with a team of developers is the opportunity to talk through design choices and issues with other developers. I'm not talking about general "humm ..." questions (there is stackoverflow for that ...

Xcode: different build setting options for different configurations. Why?

In my Xcode project, I'm looking at the "Target Info" window, "Build" tab. In the list of compiler settings, for most of my configurations ("Release", "Distribution", and "Ad Hoc"), there's a settings section called "GCC 4.2 - Preprocessing". When I switch to my "Debug" configuration, that section goes away. What can I do to make my "De...

Xcode and jailbreaked iPhone

Let's see what I have: Mac OS X Leopard 10.5.8; Xcode 3.1.4; jailbreaked iPhone 3.1 (7C144) For debugging I use simulator, but it's not so useful especial when you need some device futures. Now I need start debug on real device. When I try make "Device - iPhone OS 3.1" I got message "Codesign error: no certificate for identifier "iPh...

Dismissing UIImagePickerController

Hi I have the following code: SecondViewController *secondView = [[SecondViewController alloc] initWithNibName:@"SecondViewController" bundle:nil]; [imagePicker setSourceType:UIImagePickerControllerSourceTypeCamera]; [imagePicker setCameraOverlayView:secondView.view]; [imagePicker setShowsCameraControls:NO]; [self presentModalViewCon...

NSArray throws exception stating that is (UIAnimator *)

I have tried to run the following code, as a proof of concept, and I get the following error: *** -[UIAnimator count]: unrecognized selector sent to instance 0x3832610 2009-10-09 00:33:22.355 Concept1[680:207] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[UIAnimator count]: unrecognized...

How to resolve an internally-declared XML entity reference using NSXMLParser

I have an XML file that uses internally-declared entities. For example: <?xml version="1.0" encoding="UTF-8"?> ... <!ENTITY my_symbol "my symbol value"> ... <my_element> <my_next_element>foo&my_symbol;bar</my_next_element> </my_element> ... Using the NSXMLParser class, how am I able to resolve the my_symbol entity reference? ...

UITableViewCell & iPhone OS 2.2.1

How can I add on a Cell few UILabels and UIButton? My limit it's app should support OS start from 2.2.1. ...

Tab bar "more" button crashing - sometimes..

Hi, I'm having an issue with my iPhone application. It is Tab bar based with more then five tab bar buttons (so the More... button is there). Follow this scenario with me: The user tap on the More button The user tap a row in the table to get to another view ( which is pushed on the stack with a pushviewcontroller) The user tap on one ...

iPhone navigation bar push/pop display issues

I am using UINavigationController and getting intermittent display issues when going back, popping and pushing view controllers. Sometimes the nav bar will show the current and previous view's nav bar overlapped buttons and text, sometimes the view will change but the nav bar doesn't, sometimes the nav bar changes, but the view doesn't....

UIButton.layer.cornerRadius doesn't exist?

Hi, I'm implementing a custom UIButton with minimal functionality. The .h file: #import <Foundation/Foundation.h> @interface CustomButton : UIButton { } @end I'm encountering a compilation error at line (A) in the .m file: - (id)initWithCoder:(NSCoder *)coder { if(self = [super initWithCoder:coder]) { CALayer *layer = [sel...

How do I auto detect a hyperlink while editing?

Can you auto detect a hyperlink in HTML,JavaScript or Objective C? ...

Debug build works beautifully, ad hoc build crashes hard

I'm working with the EXIF library at http://code.google.com/p/iphone-exif/ and I have come across a real head scratcher of a bug. When I implement the library in a debug build everything works beautifully, but when I compile for ad hoc beta testing the app crashes hard. I'm getting the following error: Exception Type: EXC_BAD_ACCES...

Problems with Programatically Adding UIImageView on iPhone

I'm trying to programatically add dots to a radar screen. The code runs without complaint, but I can't seem to get the dots to show up on screen. I do have a background UIImageView that covers the entire screen, but based on the documentation I expect my new UIImageView to be added to the front (not to mention I've tried bringSubViewToF...

Purchasing Additional Development Hardware (iPhone) ?

Thank you for visiting my question and any possible info you can provide. My question is this: if I use "alternate means" of obtaining some new development hardware, namely an iPhone 2G (Edge only), like Craigslist, can I provision that phone for development and testing without subscribing to AT&T? All Internet usage and testing will ...

NSSound undeclared on iPhone?

sound = [[NSSound alloc] initWithContentsOfFile:@"staticbeam09.wav" byReference:YES]; Code referenced from Apple docs. Getting an error when I put this in viewDidLoad. If I put NSSound *sound; in the header file, I get the specifier-qualifier error at the top of my implementation file. What do I have to do to make this work? I was j...

UINavigationController not popping UINavigationBar items

I'm having a problem where my UINavigationBar isn't popping it's items when the UINavigationController pops a view controller. I have had a look at the stacks observed the following: The expected number of navigation controllers allocated (checked in instruments) There are the correct number of controllers on the stack. (debug logging...

How to use MGTwiiterEngine in iphone view Based Application ?

I required to develop a Tweeter Application for iphone. I was trying to use MGTwitterEngine in my iphone app but can’t figure out how to put it together with my iphone View-based Application. If anyone has done it and willing to share info or a demo version implementing MGtwitterEngine in their Iphone app. I would appreciate it. I have g...

matrix of buttons

Hello I have a matrix of buttons, 4x3 And i have the following problems, or let's say i don't know where to begin they are inited with a label from an array and they call the same function -(IBAction)buttonPressed:(id)sender Buttons are made programatically, not sure the function needs IBAction. How do i detect in this function what bu...