iphone

How to populate Info.plist values dynamicly in XCode ?

Can't figure out how to populate CFBundleVersion dynamically with ${BUNDLE_VERSION} which I would like to define as BUNDLE_VERSION=`date "+%y%m%d"` Anyone? ...

How to show Book Opening and loading animation as in iBooks?

I am trying to show a book opening animation as in iBooks. Any inputs will be helpful. ...

raphaeljs and iPhone: not working when embedded in bundle?

I cannot get Raphaël working in a UIWebView. I load a simple HTML-Webpage with this content: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Page Title</title> <script src="js/lib/raphael-min.js" type="text/javascript" charset="utf-8"></script> <script type="text/javascript" charset="utf-8"> alert("" + Raphael)...

In Xcode 3.2.3 NSDate returns year 2553. How to fix

Hi, I'm using Xcode 3.2.3 and Xcode 3.2.2. In Xcode 3.2.3 [NSDate date] (or any NSDate methods) returns 2553 year and current month, year, time. It's ok in 3.2.2. I tried to find where it can be placed at default values but I didn't find that option. I removed and installed it again but it didn't help too. What should I change? Thanks ...

How do you get a one-time location to a specified accuracy?

In the documentation it says that it gets an approximate location and then keeps updating with finer and finer precision. I have a button that does [locManager startUpdatingLocation]; and then I implement - (void)locationManager:(CLLocationManager *)manager didUpdateToLocation:(CLLocation *)newLocation fromLocation:(CLLocation *)o...

Cannot programmatically show image in UIImageView (iPhone)

Hi, I'm developing a iPhone app, but I ran into a snag. NSString *fileLocation = [[NSBundle mainBundle] pathForResource:@"happy.1" ofType:@"jpg"]; UIImage *new_image = [UIImage imageWithContentsOfFile:fileLocation]; [self setImage:new_image]; if (new_image == nil) { NSLog(@"can't load image happy.1.jpg"); } bgImageView.image = ima...

pagingScrollView Slideshow

I have started trying to understand the way apple implements the photoviewer app for the iPhone after watching both videos from WWDC 2009 and 2010 about scrollViews and paging through photographs and I am taking each step very slowly to understand the processes very well before I implement it all into my app. I have run into a couple of...

How do I use implement iAd into my app?

I've been working on a app that I want to earn money from, but nobody would buy it if it costed money. Does anyone know any tutorials, or know themselves, how to get iAd into an app? Thanks. ...

Xcode codesigning fails every other build

My iPhone project fails to build every other time and gives me the following info: CodeSign build/Debug-iphoneos/coati.app cd /Users/rpeck/Documents/Coati setenv PATH "/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin" setenv _CODESIGN_ALLOCATE_ /Developer/Platforms/iPhoneOS.platfo...

Split one string into different strings

i have the text in a string as shown below 011597464952,01521545545,454545474,454545444|Hello this is were the message is. Basically i would like each of the numbers in different strings to the message eg NSString *Number1 = 011597464952 NSString *Number2 = 01521545545 etc etc NSString *Message = Hello this is were the message is. ...

How can I enable internationalization in m iPhone project?

I have a typical problem: I am not able to internationalize my project. I just want to add support for the english and german language. I've followed thw instructions from this tutorial: http://www.iphonesdkarticles.com/2008/11/localizing-iphone-apps.html I have in my Project a en.lproj folder, which has Localizable.strings which has a ...

Getting argument lists from ARM dynamic libraries (frameworks)?

I have a number of private frameworks I want to use, however I cannot find any headers for them. Is there a de-facto way of getting arguments from C function calls using IDA Pro? (Not ObjC messages). Edit: Oops, I meant C not C++. ...

iPhone SDK: Audio Queue not loud enough for me

I would like all the tricks into making the playback as loud as possible on my iPhone app. I'm recording using Audio Queue and am not sure if there is a way to make the input louder. On playback I'm setting the kAudioQueueParam_Volume parameter to 1.0. It's still not loud enough. There our apps that do kind of what I'm doing that are m...

UITableView reloadData - cellForRowAtIndexPath not fired

Hello, I have splitViewController which has as MasterViewController some viewController and as DetailViewController some tableViewController. When I push a button on masterViewController I want to show new tableViewController in detailViewController instead of existing one. So I did like this: SearchDetailViewController *searchDetailV...

iPad custom table cell help

Hello all, I am trying to insert an image into a table cell based off a person search in our company directory. This is pretty easy to do, but the problem is some people do not have pictures so it is throwing their alignment off. Is there any way to have the cell keep that place blank if they don't have a picture, and not slide the t...

How to access custom view controllers in Three20 Package in iPhone?

Hi friends, I have implemented three20 projects in my application. And i have createdgrid view(Thumbnail view) and displayed the images using Three20. On clicking it, the selected image will be shown in the next view using TTPhotoViewController. Now i want access my view controller in the TTPhotoViewController class. For Eg, i want t...

Make iPhone app available on both iTunes and Cydia

What are the ramifications of posting an iphone app on both Cydia and iTunes? Does Apple look fondly at that idea? An precedents? The reason I ask is that I have a very interesting app which might have some parts disallowed by Apple. I still want (some) people to have access to those parts (call it value-added), so I wanted to release t...

iPhone Linker Error (AudioStreamer)

I'm using Matt Gallagher's Audio Streaming Project. I downloaded the code/project and it runs/compiles/links just fine. The problem is when I try to integrate the AudioStreamer class into my own project. I added all the necessary frameworks and checked over the project settings to make sure they match Matt's project as much as possibl...

Comparing of 'Class' with other 'Class' in Objective-C

Does a comparable function to 'isKindOfClass:' exist for comparing a 'Class' to another (i.e. without constructing an instance of either class). For example, given: Class class = NSClassFromString(@"NSNumber"); [NSNumber isKindOfClass:class]; // YES [NSString isKindOfClass:class]; // NO Thanks! ...

iWebkit, iPhone Zooming

Hi Guys, I am working on a mobile website built for the iPhone. The issue I am facing is related to zooming. I have a page that contains an iFrame on another page presenting an image. I set that main page to be scrollable, and it does scroll... Its not the prettiest thing, but it functions well. When I "Add Link To HomeScreen", the s...