iphone

using the twitter api in objective C

So, the twitter API has the method "statuses/update": URL: http://twitter.com/statuses/update.format Formats: xml, json, rss, atom HTTP Method(s): POST Requires Authentication (about authentication): true API rate limited (about rate limiting): false Parameters: * status. Required. The text of your status update. URL encod...

kCFNumberFormatterScientificStyle and kCFNumberFormatterDecimalStyle hybrid? - iphone / objective-c

in objective-c or iphone development has anyone ever done dynamic number formatting - something along the lines of "use kCFNumberFormatterDecimalStyle until the number gets too big, then use kCFNumberFormatterScientificStyle instead?" i want to display a number with some sort of hybrid between the two, but i'm having a little trouble wi...

Problem with action

I have designed a game that the main character will jump in the screen for gaining points, but i need the player can only touch after the character landed, i had done following thing but still no work, what have i missed?? (BOOL)ccTouchesEnded:(NSSet*)touches withEvent:(UIEvent*)event { UITouch *touch = [touches anyObject]; CGPoint ...

Objective-C Properties in iPhone Development

Hi, Whats the difference between a property and an instance variable in Objective-C. I need to understand this in OOP terms. Is a property declaration just a convenience wrapper (with @synthesize in the implementation) for accessing instance variables? thanks, codecowboy. ...

How to put a UINavigationController on the FlipsideView of a iPhone Utility app

I'm trying to develop a new application based on the standard Utility template, which has a MainView and a FlipsideView, and allows the user switch between the two with a cool flipping effect. I've used this template many times with no problem, but now that I want to use a UINavigationController on the FlipsideView, I found out a problem...

UITableView Animation Headache

NSIndexPath* updatedPath = [NSIndexPath indexPathForRow: 0 inSection: 0]; NSIndexPath* updatedPath2 = [NSIndexPath indexPathForRow: 1 inSection: 0]; NSArray* updatedPaths = [NSArray arrayWithObjects:updatedPath, updatedPath2, nil]; [self.mySexyTableView reloadRowsAtIndexPaths:updatedPaths withRowAnimation:UITableViewRowAnimationTop]; ...

Creating a new image with new dimensions like height equals to width and width equals to height

hi, i m getting problem with the rotation of image.I want to create a new image with height equals to width because rotating by 90 degrees.but new image created change dimentions but do not place data in image accurately. CGImageRef imageRef = OriginalImage.CGImage; /////////////new height equals to width of origunal image size_t n...

Movie, Image Editing, Mixing Audio in IPhone

Hello All I need to develop some sort of application featuring Editing Movie slices, Adding and editing images, Adding sound . recording movie, Adding effects, setting transitions between movie clips and images. so is there any provision in SDK 3.0? I will use iPhone 3GS Please Help Me. Thanks ...

iPhone Application

Hello, I want to integrate some links on my iphone application. That is when user touch on the button say "Yahoo" then Yahoo's page will be opened and then all the functionalities of Yahoo mail has proceeds. How can I do that? I have a bit idea about NSURL, but not much. Please help me for that. Thanks in advance.. ...

is it necessary to release a NSInteger in iphone?

i am getting this error does some one knows about it??? 2009-07-08 18:42:36.778 FlashCards[1297:20b] Category Id=1 FlashCards(1297,0xa0690fa0) malloc: * error for object 0x4fd78a0: pointer being freed was not allocated FlashCards(1297,0xa0690fa0) malloc: * error for object 0x4fdc200: double free *** set a breakpoint in malloc_error_break...

Optimized Image Loading in a UIScrollView

I have a UIScrollView that has a set of images loaded side-by-side inside it. You can see an example of my app here: http://www.42restaurants.com. My problem comes in with memory usage. I want to lazy load the images as they are about to appear on the screen and unload images that aren't on screen. As you can see in the code I work out a...

Object motion in circular using Accelerometer

Hi All, I am developing a part of game in which i need to move the ball in a circle. I am able to move the ball in circle with the help of Accelerometer. Problem is when there is collision on the edge. At that point the ball does not move smoothly as when there is no collision. There are jerks when moving the ball, so my question is ho...

How to add adhoc application on multiple iphone on the same computer in itunes ?

How to install my app in adhoc release on multiple device with the same computer/itunes, when i try to do it, itunes sync the devices..so i clean them up ... ...

objective-c memory management: caching view elements

Hi, I'm writing an application which is quite graphically heavy and therefore I'm trying to implement a caching mechanism within my view controller that creates a view once, and retains it for future use, similar to the following: - (UIView *)logoView { if(_logoView == nil) { _logoView = [[UIImageView alloc] initWithImag...

How can I get only a partial rectangle from a CALayer ?

I'm getting a "snapshot" of an UITextView as CGImage, but the problem is that the content of the UITextView is very long ( about ~110k contentSize.height ) and when I render the UITextView layer in to the context the memory usage becomes ~130MB which causes the application to crash when run on a device. Here is the code. viewref is an i...

iPhone: Existence of a Memory Leak Profiler?

Is there such a thing as a Memory profiler for Iphones apps? I'd like to know what objects are in memory at any moment. ...

How to convert colors from one color space to another?

Is there a Cocoa Touch way to convert colors from one color space to another? At the end of this code: UIColor *grey = [UIColor colorWithWhite: 0.5 alpha: 1.0]; CGColorRef greyRef = [grey CGColor]; int x = CGColorGetNumberOfComponents(greyRef); ...x is 2. The reason I need this is I'm trying to copy colors to a list of color compon...

How do I set the font of an UI element to the "System" font in IB?

How do I set the font of an UI element (ex. UILabel) to the "System" font in IB? In code, I know I can do the following: UIFont * tempFont = [[UIFont systemFontOfSize:24] retain]; But what about doing the same thing in IB? What is the default system font on the IPhone? ...

iPhone SDK 2.2.1 based app should be launched on iPhone 3.0 OS device.

My app was built with SDK 2.2.1 version even before 3.0 beta appear. User going to install my app to the last iPhone 3Gs with 3.0 FW version. Will my app behave differently with last iPhone? Will items described here (3.0 OS Release Notes) influence to my app which was build with 2.2.1 SDK? For example Apple doc tell: FIXED: UINaviga...

Regexkit lite and iPhone parsing

I've taken the suggestion of some posts here that recommend regexkit lite with a problem I am having with trying to extract a particular URL from a string. The problem is that I'm very lost with the syntax of using it and hoping someone that has used it can give me a hand. The string i'm trying to parse looks someting like this: <a> bl...