iphone

changing labels in uitableview .

Hi all, I am using table view for editing an object . I am using below code to construct a uitableview cell. It is working nicely but somehow while scrolling the cells changing internally . static NSString *CellIdentifier2 = @"CustomCell Editable Identifier"; cell = [theTableView dequeueReusableCellWithIdentifier:CellIdenti...

Finding out, whether Bluetooth is enabled or not on an iPod/iPhone

I'm writing an app, that automatically finds peers running the same app, so I need the Bluetooth-device. But because of app-restrictions I'm not allowed to use the private framework to enable, or activate the Bluetooth-device. I'd rather avoid a pointless searching for peers if there's no possibility of finding them. Is there any way to...

Unable to add libpng library in my project

Hello developers, I am new to iphone developmenet. I'm trying to load PNGs using libpng but I'm unable to add it to my project after trying so much. I've got following errors while adding libpng to my project. Plz help me how to get rid of these errors: "_deflateReset", reference from... "_inflateEnd", referenced from... "_*inflate", ...

How to retain a plist file in memory

I'm loading a plist file using a slightly tweaked version of the example in the developer docs - (void) loadPlistIntoMemory { NSString *errorDesc = nil; NSPropertyListFormat format; NSString *plistPath; NSString *rootPath = [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) objectAtIndex:0...

cocos2d - textures are not found on the device

Hey. Here's my code with I use to create sprite thanks to cocos2d. [[CCSpriteFrameCache sharedSpriteFrameCache] addSpriteFramesWithFile:@"bambusowy.plist"]; CCSpriteSheet *teksturySheet = [CCSpriteSheet spriteSheetWithFile:@"bambusowy.png"]; [self addChild:teksturySheet]; NSString * stttt = [NSString stringWithUTF8String: tex_...

iphone keyboard touch events

I need to be able to detect touch events on the keyboard. I have an app which shows a screen which occurs after a certain period of inactivity (i.e. no touch events) To solve this issue, I have subclassed my UIWindow and implemented the sendEvent function, which allows me to get touch events on the whole application by implementing the...

animation effects : leaf falling down to ground

Need to figure some transformation codes to implement falling down naturally just like leaves falling down from tree. Here are some codes, fly from one place to another place with some rotation angle. [UIView beginAnimations:nil context:NULL]; [UIView setAnimationCurve:UIViewAnimationCurveEaseInOut]; [UIView setAnimationDuration:5....

How do I show my own image on a UIToolbar's UIBarButtonItem

I have seen variations of this question before in the forum, but I did not quite understand the solutions. I have a regular ViewController that hosts a UIToolbar at the bottm. The toolbar has several UIBarbuttonItems for example one of them has: Style: Plain Identifier: Custom Title: Stop Now I want it to display an image I heve provid...

Is this possible to connect microsoft database from iPhone?

I would like to connect microsoft database via iPhone, is that possible to do so? Is there any third party library required? If not, any suggestions on that?? Thank you. ...

Using twitter:// tweetie:// custom scheme on iPhone to open twitter application to a specific user profile

Hi, I thought I was familiar with the applications custom schemes used with iOS to trigger applications from my app but I'm unable to use the ones that seems to be provided by the official twitter app (aka tweetie). I'm trying to open the twitter application directly to a predefined user profile. From the documentation found here http...

How to validate an emai id in Iphone sdk?

H guys, I need to validate an email address which was in the format [email protected] As I am new I dont know how to validate the email address. Please guys suggest me how to get out of this. Hope I will get quick response from you guys. Thanks in advance, Monish. ...

Anchor in a UITableView

Hi, I have a UITableView which has some dates on it. I would like to go directy to a specific entry (i.e. "today's date") in my tableview when I open it. That means I want to have the past dates already scrolled down and the first line I see is the one with today's date. How can I do that? Thanks, Laurent ...

execute code when loading view

hi, in the new os 4.0 when you leave the application it enter background, but when you relaunch it it doesnt load any code, i want my application to execute a specific method when going back into the app. thanks ...

iphone - unrecognized selector sent to instance - Trying to open the starting view after viewing serveral other views

I am just starting with iphone programming. I used the utility application project template. A button on the main view of the utility application calls another view which shows some data. At the end of the presentation of the data a "end" view is shown. The "end" view contains a button to return to the main view. This all works grea...

Content touch handling in UIScrollView

I've got to deal with UIWebView embedded into UIScrollView. How do I handle the link touch, for ex. ? ...

AddressBook API woes - NSInternalInconsistencyException

My situation is the following: We're creating an application that (among other things) shows data from the Public Folders in Exchange. We'd like our iPhone App to display contacts like the iPhone does it by default (like Apple's AddressBook app), therefore we're making use of the AddressBook API. However, we don't intend to save any dis...

Segmented Control to Swap ViewControllers in a Navigation Controller

Here is the setup of my iPhone App: I have a UITabBarController that has 4 View Controllers (1 UINavigationController & 3 UIViewControllers). Onload my app is defaulted to the UINavigationController, where there is a grouped UITableView which gives two navigation options, when the user hits the first option the relevant UITableViewCont...

Multi language Supports in iPhone?

Hi friends, I created one apps and successfully submitted into AppStore. Now my client wants to support multi language like Portuguese, French, Chinese, etc., into my apps. How do i create multi language supports in my application?, Is there any sample application or tutorials available?. Is it possible to create multi language in iPhon...

Resize NSData to set into UIImage

Hello everyone, I have these codes: UIImage * img = [[UIImage alloc] initWithData:[NSData dataWithContentsOfURL:[NSURL URLWithString:IMAGEURL]]]; [self.imageView setImage:img]; But the IMAGEURL contains a high resolution picture so it takes much time to load. Can I resize the image data smaller to load faster? Any help will be appre...

Elastic Animation - the math behind it

I want to make an elastic popup animation (in the iphone google maps app, kind of like the popup) Does anybody have an idea of what the math formula would look like to make an elastic animation? i tried but couldn't think of formula or how to do that. Here's whats i had in mind: (a control, or something) starts growing, faster,faster, ...