iphone

iphone simulator: "libpng.dylib, file is not of required architecture"

I'm trying to link the libpng library to my iphone application, and getting this error: ld: warning: in /opt/local/lib/libpng.dylib, file is not of required architecture This happens when I build for the simulator or the device. When I build a console application however, I can link in libpng just fine. What am I doing wrong? Is the...

how to put pins in the map view?

I am a new user in the iPhone application. I wanted to show pins in my MKMapView. How can i do it? Give me some valuable suggestions. ...

using NSString + stringWithContentsOfFile:usedEncoding:error:

Hello, all! I've got problem with use + stringWithContentsOfFile:usedEncoding:error: My problem in usedEncoding:(NSStringEncoding *)enc I don't know how can i set pointer to encoding. If i make it - programm is fail. For example, in similar function we have encoding:(NSStringEncoding)enc - without pointer! I want loading file (file h...

Can I run multiple app in iphone simultaneously

I want to run two app simultaneously, I am using jailbroken phone and dont want to upload that app to the app store. Is there any way so that I can log phone call time, this can only be done if my "logging app" is running in background. Please suggest me, how can I do this on jailbroken phone. Some thing like:http://msdn.microsoft.com...

Do you have to release the returned value for ABAddressBookGetPersonWithRecordID?

Do you have to release the returned value for ABAddressBookGetPersonWithRecordID? ...

Getting info on other apps via Objective-C

Is it possible via objective-c to find information (such as the names) for other apps installed on an iPhone from my app? ...

Testing apps with iPhone synchronized with a pc?

My iPhone is currently synchronized with a pc. I'm planning to purchase a Mac Mini for developing iPhone apps and testing them with my iPhone. Does my iPhone have to be synchronized (via iTunes) with the Mac, in order to test my apps on it? Or can it stay synchronized with my pc? I'm questioning this, because I want to keep my iPhone syn...

XCode - Multiple targets, Multiple *internationalized* names?

I've got an internationalized iPhone project. In the various ${lang}.lproj/InfoPlist.strings files I've got a single key, CFBundleName = "My App Name". That's working fine for a single target, but I can't make it work for multiple targets. I'd like to have several translated InfoPlistMyApp.strings files for the main target, plus severa...

MKAnnotationView

Hello. my question is, to set more Annotation Pins on a map? enter code - (NSArray *) addressLocation { kunden = [NSArray arrayWithObjects:@"Kammlach", @"Mindelheim",@"Ettringen", nil]; NSString *aktuellerKunde; int i; locations = [NSMutableArray arrayWithObjects:@"",nil]; for (i=0; i < [kunden count]; i++) { CLLocationCoordinat...

sending XML file from IPhone to a server using Post Method

I am trying to send the data to server from my Iphone client. It works fine for most values but when itry to send a string like "IPhone+Cocoa" the server shows the string as "IPhone Cocoa". I have tried to google it but without success is there any why of doing it. Here is my code -(void)sendRequest:(NSString *)aRequest { NSMutableUR...

Delay in receiving APN on iPhone

Hi, Sometimes I am experiecing a delay while receiving APN , while at other times its working absolutely fine. I am also connecting to the feedback server at ssl://feedback.sandbox.push.apple.com , but its not showing any data. What are the possible reasons for the delay? Thanks ...

iPhone + UITableView + access cell of particular row

Hello, I am using following method in my application: (UITableViewCell *)tableView:(UITableView *)tblView cellForRowAtIndexPath:(NSIndexPath *)indexPath In this method by using indexPath.row I can get the row number of each row. But I want to actually access the cell at that row and do some formatting on that cell only. Please gui...

Removing new line characters from NSString

I Have String like this Hello World of Twitter Lets See this > I want to transform it to:: Hello World of Twitter Lets See this > How should i perform such activity.on iPhone ...

compile error on Xcode

How can i fix it Ld build/Debug-iphonesimulator/iRadio.app/iRadio normal i386 cd /Users/ragopor/Desktop/iRadio setenv MACOSX_DEPLOYMENT_TARGET 10.5 setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin" /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin...

Why is using a static int in my accelerometer callback so much slower than using an instance variable?

I'm playing with the GLGravity example to figure out some of the performance nuances related to dealing with the accelerometer. Here's the problem code: - (void)accelerometer:(UIAccelerometer*)accelerometer didAccelerate:(UIAcceleration*)acceleration { static int accelCallCount; accelCallCount++; if (accelCallCount % 100 ==...

How to bind text value to sqlite3 database in iphone

I am developing a app for a movie in which I need to fetch data from the database considering some constraints. It works perfectly on the first occasion, but when I try to fetch data 2nd time it throws a runtime exception( the app crashes).I have to bind 3 placeholders. 2 are text and 1 is integer type. Here's the code which I am using t...

scrollsToTop doesn't work when UIWebView used with pushViewController, looking for solution

I have an app with a table view at the root in a navigation controller, and on selection of a table cell it displays a new view controller that contains only a UIWebView (with a toolbar and a navbar). Depending on how I present the new web view, the feature where the user can tap on the status bar at the top and have the webview scroll ...

Question regarding UIButton

Hi, everyone I have 1 UIButton with 1 image with blue colour but when i click on UIButton at that time i want to remove that image and add 1 another image. ...

iphone setAnimationWillStartSelector/setAnimationDidStopSelector not working (a scrolling ticker example)

Hi, I am displaying a ticker at the bottom of a view (think of a news channel's headlines ticker bar) in the form of a horizontal scrollview. It works correctly when I set the repeatCount to infinite but I want to be able to do some other functionality when the animation starts and stops instead. However, after reading the documentation...

marquee effect in uitableviewcells textlabel.text

Is there a way to accomplish something like the html Marquee effect for a uitableviewcells textlabel.text? ...