iphone

Loading a UIView subclass from NIB size issues

I have a subclass of UIView that needs to calculates it's height according to it's width. When created in code everything works. However when I try to create the view in Interface builder, and although I override all related methods, I can't get the size of the view set in interface builder. - (id)initWithCoder:(NSCoder *)aDecoder { ...

ext_bad_access when trying to show a tableView

Hello there, I'm having the following issue: I have a tab-style app. Eacht tab has its own viewcontroller and xip. Within the first tab-view, I try to display a button which load a next view, showing a grouped tableView. Everything works as expected, the numberofSectionsInTableView is called, and then I get an ext_bad_access error. ...

which is the best javascript lib for google maps and iphone ..

i want to develop a map site on iphone use google maps v3 thanks updated i find one :PastryKit which i think better than iui and jqtouch , but i can't find its doc , so did you know the PastryKit's doc ? ...

how to change the base sdk to 3.0

Hi all, I developed a project for the base sdk 3.0 and now I have installed xcode3.2.3. Now when I am trying to build my project it says missing sdk 3.0. And when I am trying to set the base sdk from the project settings there is no 3.0 sdk available in the list. Only 4.0 is available. So my question is how can I add 3.0 sdk in the new ...

UIButton setText programatically

I have about 10 UIButtons on xib file and want to setText programatically ...

Why does iPhone eMail signature go out as an attachment?

I am building an iPhone application that generates an email with an attachment. The eMail message window pops up showing the body text and attachment followed by the default "Sent from my iPhone" signature text. Everything seems perfectly ok, except when the message is received by the recipient the signature "Send from my iPhone" has be...

NSUserDefaults changing values between launches

I have the following code in my applicationWillTerminate in the app delegate: NSLog(@"Source: %d", [[NSUserDefaults standardUserDefaults] integerForKey:@"Source"]); And I have the same code in my applicationDidFinishLaunching in the same app delegate. When I quit the app, the log shows one value (say 101) and when I relaunch the app,...

call interception in iPhone

Hi , I like to develop an application which programatically answers the incoming calls and access the phone number and other info . I have checked one of the link as follows : http://blogs.oreilly.com/digitalmedia/2008/02/when-it-comes-to-the.html which speaks about "CoreTelephony.Framework" , but that doesnt gives any answers on p...

A question related to @property

why we are using nonatomic in the @ property @property(nonatomic,retain)UIButton *button; what is the meaning of nonatomic? ...

UITableViewCell. How do I programmatically align textLabel to top?

By default, a UITableViewCell instance positions the label pair textLabel/detailTextLabel in the center of its parent view. I prefer to have the pair aligned to the top of the cell. How do I do that programmatically? Thanks, Doug ...

i want to find bookshelf like demo.

i used to have a bookshelf demo downloaded from the apple's official site . But now i lost it and couldn't find it back . Does anybody come over it. please let me know , just give me a link. thanks. ...

Webmobile - Display 3 select boxes at the same time !

Hi! I have a mobile website (mainly iPhone, but Android and others too..) with a simple form. It contains three select boxes for the day, the month and the year. The iPhone automatically displays a pretty nice wheel for each one of the select boxes, but only one at the same time. Is there an easy way to display the 3 wheels (correspond...

can i make an iphone-app NOT deletable, like the preinstalled ons or some cydia-apps ?

at first: this app will NEVER reach the appstore, so apples restrictions are eglible. the app should only be for demonstration purpuose, but i want, that no mean person playing with the device can delete it. some apps in cydia show, that it is possible. second thing: i did only read something about the os4-features, because until this t...

iPhone web App Server connetion

Hi, I am developing an iPhone app which need connection to server to fetch huge data at regular interval.So need to know which way is better socket connection or using libXML Thanks ...

Advertising in my iPhoe app

Hello, What you recommend for advertising platform not in the USA. iAd is ot seding ads outside the USA. I'v tried AdMob, ad it also seems not to work. Most of the time it fails to show up an and, ad when showing it shows only one ad again and again (some hotel booking) Any Idea? ...

can we use jpg images in iphone application

hiii frends, actually i am working on an application which requires images such as for background, cars etc. png images are very heavy so can we use jpg images? thanks for any reply. ...

drawing on iphone

hello, I am trying to develop an iPhone application for children which will be able to draw characters on screen with touch and I want to know how to match the character drawn with good character of the alphabet. How will i compare the two shapes (drawing and existing) Any idea?? some code? ...

NSOperationQueue returning __getNextReady bad access on resuming

Here's how I start the code: m_searchTimer = [[NSTimer timerWithTimeInterval:0.5 target:self selector:@selector(launchRequest:) userInfo:nil repeats:FALSE] retain]; [[NSRunLoop mainRunLoop] addTimer:m_searchTimer forMode:NSDefaultRunLoopMode]; then in my -(void)launchRequest method: - (void)launchRequest:(NSTimer *)timer { ASIHTT...

iPhone MVC app: Where should I put the model?

Hi there, I'm pretty new to iPhone development. I am building an app which has multiple views and controllers. There is only one model. I need to share the model amongst all of the controllers; so I have instantiated the model inside the App Delegate header file: @interface MyAppDelegate (...snip...) @property (nonatomic, retain) Cal...

Navigation bar and top margin

Hi everyone I have an issue with a UINavigationBar and its y-offset. The bar is displayed without a UINavigationController as superview, yet that should not matter. In the viewController where the navigation bar appears the setup looks like this: // Add Basic View CGRect viewFrame = [[UIScreen mainScreen] applicationFrame]; ...