iphone

iphone app. using objective c and cocoa touch ,how do i create native contacts like app.

iphone app. using objective c and cocoa touch ,how do i create native contacts like app. Hi all, i am creating a app. similar to native contacts in iphone....i hv displayed all the contacts in a table view...and if any any particular contact is clicked a new view is navigated.... Now i want to display all the properties of the parti...

Decrease TabbarItem Title Font Size

I have created UITabbarcontroller application... In that application, I was set an title and image at run time in the tabbar item.... Some text should be larger compare to tabbar item... Can any one help me ? How can i fix this ? Is it possible to done it any other way ? Thanks in advance........ ...

Advice on using sandbox vs. caching for UITableView async image download

Apple just released some sample code on lazy loading images in a UITableView a week ago. I checked it out and implemented it into my own UITableView (which is a drawRect one for fast scrolling), to see if there was a difference from what I was already doing. After implementing I am not sure what is best; the new code or what I already h...

NS String comparison fails with stringWithFormat

I have two NSStrings with the same value this failed for me: if (button.controlName == controlName) { return button; } this worked: if ([button.controlName compare: controlName] == NSOrderedSame) { return button; } Is this just how strings are compared in objective c? Or should the first statement have worked as well? Why ...

iPhone – Photoshop like effects

Can I make in iphone multiply, screen, color or other photoshop like effects? ...

Why are device and simulator builds different?

I'm referencing two static libraries. I build them in debug-simulator mode and all works well with my app. I then create debug-iphone builds and push my app to the device. It breaks with this error: Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[NSCFString sizeWithCGFont:pointSize:constrainedTo...

Sorting Core Data with Predicate to eliminate duplicates

I have an Event database loaded into Core Data that has duplicate Event titles. This has been made so the database can provide unique information for each day of the event. Eg fluctuations in pricing on each date. I now need to remove the duplicate event titles from a list that will be displayed as table view with NSFetchRequest and NS...

iphone sdk: Movie Player problem!

Hi guys What I'm trying to do is to play videos in MPMoviePlayerController. I hooked it with MPMoviePlayerContentPreloadDidFinishNotification to check if it succeeded or failed. Whenever I try to load broken urls it gives me an alert saying "the server is not correctly configured". Now I want to change this text to something else or h...

iPhone fluid simulation

Somebody know fluid engine for iphone?I need water and gases simulation. ...

How to position a TabBar programmatically

I am creating a view controller programmatically which is a UITabBarDelegate and contains a UITabBar. UITabBar *tabBar = [[UITabBar alloc] initWithFrame:CGRectMake(0, 200, 320, 49)]; [self.view addSubview:tabBar]; I don't really want to hardcode the frame values in case the screen resolution changes or I use the view in a different co...

Wiring events to a UITextView

I can't seem to wire events to my UITextView. I'm expecting that the list of events that are available for the UITextField ("Did End On Exit", "Editing Changed", etc) , should all be available for the UITextView. However this isn't the case. UITextView in its events listing shows nothing. What's going on here and how do I trap events...

Draw a Custom cell for tableview ( uitableview ) , with changed colors and separator color and width.

Hi, I want to draw the background of a UITableViewCell which has a grouped style. The problem with me is I am not able to call the -(void)drawRect:(CGRect)rect or I think it should be called programmatically... I have taken code from following link . http://stackoverflow.com/questions/400965/how-to-customize-the-background-border-colo...

FTP vs HTTP upload on iPhone

In my iPhone application I need to upload images to a server. I don't worry much about security and stuffs, just need a fast and reliable method. I can embed my image data on the HTTP post request, or I can create a FTP connection to the server (using the SimpleFTPSample from Apple). The disadvantage of each method is: - HTTP: time out i...

How can i bring up the iphone uikeyboard with non-english language?

How can i bring up the iphone uikeyboard with non-english language? tnx :) ...

Keeping a UIButton selected after a touch

After my user clicks a button, I'd like that button to stay pushed during the time that I perform a network operation. When the network operation is complete, I want the button to return to its default state. I've tried calling -[UIButton setSelected:YES] right after the button push (with a corresponding call to -[UIButton setSelected:N...

ImageIO initImageJPEG instances getting allocated and never released

Hi!! Im developing an app for an iPhone and I found that the following code is causing the memory allocation to increment. -(UIImage *)createRecipeCardImage:(Process *)objectTBD atIndex:(int)indx { [objectTBD retain]; // bringing the image for the background UIImage *rCard = [UIImage imageNamed:@"card_bg.png"]; CGRect frame = CG...

How do you connect the "delegate" outlet of a UITextView to a class that implements UITextViewDelegate protocol?

How do you connect the "delegate" outlet of a UITextView to a class that implements UITextViewDelegate protocol? I can't seem to find an example in the docs The weird thing is the UITextView's "delegate" outlet has that drag 'n drop interface thingy, like you can wire it up to another widget but of course, I don't want to wire it up to...

Should you still do memory management in a unit test? (OCUnit)

Hi! Should I still bother with releasing objects in a unit test? I noticed in Apple's "iPhoneUnitTests" sample project objects are [[object alloc] init] in the setup method but never released anywhere in the unit test? Thanks! ...

Iphone interface question

Just curious if I need to implement a way for the user to get back to the main screen of a program. It's actually essential in my app for the user not to be able to get back. Will this get rejected if I don't add a back button? ...

How to find State location from iphone GPS?

Hello all I'm trying to add to my program that locates the person in GPS but sets a value to the State that person is in so example: GPS Locates person from his/her iphone then returns the state they are in so say its California then the state variable gets set to California as a string would someone have an example any help is apprec...