iphone-sdk-3.0

How to add bar buttons to UINavigation bar

Hey, I am trying to add bar button items to my UINavigationBar (nav bar) but I have found out that bar button items are not properties of navigation bar and hence can't be accessed directly like: UIBarButtonItem *rightButton = [[UIBarButtonItem alloc] initWithTitle:@"Done" style:UIBarButtonSystemItemDone target:nil action:nil]; ...

Iphone app to make calls and send audio files. How do they do it?

I came across this great app Text2Speech and I am curious how it is possible to do something similar. It looks like they have something on their servers that actually makes the call, in other words, the call is not originated in the Iphone running the app, but in the app server side. And somehow they manage to show my phone number in the...

UIImage deallocate problem

Hi, i've been pulling my hair over this problem, i've read all the post about deallocation problem but couldnt understand why, because i'm pretty new with objective-c and iphone, as you can tell :) but what i dont understand is this block of code below saying i've over-deallocated UIImage, now i have tried everything but the app stil...

How can I get current time in a +7 timezone on iPhone?

I want to get the +7 timezone on iPhone, how can I do so? Thank you. ...

UITableView Cell background color fade away

Hey all, How can I give a tableView cell background color the fade effect as soon as it appears. I know how to get a cell selected when the table view appears but the color persists for ever. I would like it to stay there for a while (2 seconds or whatever) and then fade away. Can anyone help me with this? Off the top of my head, I am ...

Navigation Bar is not positioned corrected.

I have a Navigation Controller in my main view. And I use the following code to add the navigation view when needed. [self.view addSubview:navController.view]; However, the the navigation bar is not positioned correctly. I have posted a pic below. Anyone knows what is the potential problem? ...

Can't attach CSV file to iPhone Mail application

The code below works perfectly to send text (.txt) attachments via the mail application (textfile.csv needs to be modified everywhere with textfile.txt). However when I try to attach csv files it does not work at all (the mail application opens up showing the icon of the textfile.csv but when the mail arrives it has no attachment (nor th...

Random malloc crashes in stringByReplacingOccurrencesOfString

Hi, I am getting random malloc crashes in stringByReplacingOccurrencesOfString. I've noticed that it crashes on longer strings, but I can't seem to find why. What could be the problem? The error: CashTrader(53448,0xb0103000) malloc: *** error for object 0x5c5eca0: incorrect checksum for freed object - object was probably modified afte...

UITableView Selection fade away

Hey all, How can I give a tableView cell background color the fade effect as soon as it appears. I know how to get a cell selected when the table view appears but the color persists for ever. I would like it to stay there for a while (2 seconds or whatever) and then fade away. Someone said that I should use [tableView performSelector]...

Best way for an Iphone app to talk to a Java server through a full-duplex connection (chat or game)

My client is in an Iphone app (game with chat) and it will be talking to a Java server. What is the best way (protocol / interface) for my Iphone app to talk to my server? I know you can use HTTP, but it is a request / response protocol. I could always request something and wait for asynchronous notifications from server. Then request ag...

Home button doesn't exit app in iPhone simulator 4.0

I noticed that when building then running viewDidLoad only gets called once. If you press the home button and re-enter the application, viewDidLoad does not execute again. Another thing I noticed is that when you re-enter an application it starts off right where you left off. Is this the same behavior as in older SDKs? Does this mean t...

TabBar + UITableView + CoreData

hi, i have an application which uses CoreData/.sqlite to store my data, a tab bar and table views The data has relationship and data already setup. I have the first table view in Tab 1 working, display the data correctly from the fetched results. But I am stuck on the drill down view. Would be great if someone could enlighten me. Do I...

TIFF image format for iphone application.

Hello, I am working on iphone app and i need to save image into .tiff format. It is possible to save image into png format using UIImagePNGRepresentation method and JPEG format using UIImageJPEGRepresentation. But i need to save signature captured by imageview into tiff format. I unable to use NSImage class so that i can call TIFFRepres...

iphone: tab bar controller: how to call methods ?

Hi guys!, i need some help: i have several views (view xib): login, sign up, settings, and so on. i have created a project, added a tab controller and the tabs are working fine. The problem is that: we have 2 sign up 'ways' and my boss want them in two different tabs. The code is almost equal, so my idea is: instead of hav...

How can i make an image to rotate based on the direction of my finger swipe

I'm trying to spin an circle image based on user swipe.Now I've done by considering the as two parts. one is the left side and other is the right side. If the user swipes down from right half means it rotates clockwise and swipe up means anti clock wise. In left side I've done the vice versa. So now my image will rotate fine only when I ...

Detect touch in UIImageView in UIScrollView.

Hi i have images in my UIScrollview which is added in View. plz go through my code- @interface ScrollViewController : UIScrollView <UIScrollViewDelegate>{ UIImageView *productImage; UILabel *productName; NSArray *productArray; } @property(nonatomic,retain) UIImageView *productImage; @property(nonatomic,retain) UILabel *pr...

changing of uiview orientation when a button clicked

how can i change the uiview interface orientation when i was clicked a button. ...

iphone: (audio) posting message to kill mediaserverd

Hi guys, i'm playing several sounds using AudioServices AudioServicesPlaySystemSound ( aSystemSoundID ); when i test the project on the iphone (3g) attached to the machine i got this message: 2010-09-16 17:29:29.672 myProject[6528:6def] [17:29:29.672 <0x85d400>] PlaySound posting message to kill mediaserverd (5958) [Swi...

UIWebview memory problem

Hi, In my App I have a large memory issue I add UIScrollview with a viewController views dynamically when I need and I properly remove the viewController while scrolling. and in that viewController I placed a UIWebiew in IBOutlet and load webview as [m_objWebView loadRequest:[NSURLRequest requestWithURL: [NSURL URLWit...

Strange iPhone 3g Problem in viewControllers

Hello All, I am developing an application. I'm getting a very strange problem. In iPhone 3GS,4.0 the app works fine but in iPhone 3g there is a straight red line appears in some View Controllers automatically. Also the static background image got weird. Does anyone faces this kind of problem. Any help will be appreciated. Thanks ...