xcode

how can i add a js code to my iphone app in xcode

hi, i want to use a chart in my iphone app. i find pretty good charts written in javascript. but i couldn't find out how to add and use it in my app? by the way, itried google chart apis but needs internet. and i tried core-plot but didn't like much :(. i want to use javascript in my app... thanks in advance... ...

Setting dylib paths as a XCode build step.

I have a Cocoa application as XCode project that has several supplementary bits of functionality as dylib targets. When XCode builds the project, it places all the build outputs in a single folder: The .app bundle and the dylib files. And when executed from the XCode debugger, the .app launches. I can't however launch the application f...

OCUnit tests not running / not being found

I'm trying to get to grips with OCTest, but can't seem to get it to actually run my tests (at least, I believe it's not running my tests). I've set up a project as described in the developer documentation, and added a class called UnitTests which contains the following function: -(void)testFailures { STFail(@"A message"); } When I...

How to control master volume with MPVolumeView

im using MPVolumeView for controlling master volume. When i change the volumeview slider it will not affect to the ringer volume. But the strange thing is while open any another application, ringer volume changes will affect there. what is the reason for that? Why the changes is not affecting immedietly? Any insight is appreciated! ...

Compile C lib for iPhone

I'm trying to compile ZeroMQ C binding in order to be able to use it on iPhone, here is my configure options: ./configure --host=arm-apple-darwin --enable-static=yes --enable-shared=no CC=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin10-gcc-4.2.1 CFLAGS="-pipe -std=c99 -Wno-trigraphs -fpascal-strings -O0 -Wre...

the bundle is invalid. an application targeting the iphone device family may not require a iphone os deployment target of 3.2

Hey. I'm making an iphone only app, so far I have been able to share my app via ad-hoc distributions, and run it both in my simulator and my devices. But now that I'm finished, I can't upload my build to the store because of this error: "The bundle is invalid. an application targeting the iphone device family may not require a iphone o...

problem in tabBar Controller with more than five tabBar items

I am facing few problems while using tabBar with navigation controllers.Each tabBar item is associated with a separate navigation controller.Problems are listed as follows: 1.There are more than five tabBar items in my tabBar so a more tabBar item comes by default.Now when i tap the more tabBar item the remaining items come in a tablevi...

Shark does not show function names

Hello, I want to use shark to profile my application(I used it before and it worked fine), but now it does not show any function name. I have only Unknown Library and address[unknown] in symbol column. Some project parts are static libraries(compiled and linked in same project, with debug symbols on). Function names from standard lib ...

how to declare a external integer variable so that i can access that in in view controller

i want to access variable in all views ,so how can i declare it .... ...

Parent view -> Subview -> button -> subview method

Hi all, I have a parentview with a ui view on it. This loads a subviewcontroller on viewdidload. The subviewcontroller has a button on it that is linked up on touch up inside to a subviewcontroller method called clicked. This causes a bad access error to fire and crashes the app. My question is, is this setup possible or do I have to h...

MKMapView not alway call the delegate to show the annotation

I have a mkMapView with one annotation. The first time every thing is OK. The application call the delegate - (MKAnnotationView *)mapView:(MKMapView *)theMapView viewForAnnotation:(id )annotation {...} and my annotation is working fine. When I need to change to a new map location (with a new annotation) the old one is release the new an...

Make C char array from NSString object in Obj-C.

Hi, I want to make a C char array from NSString object in Obj-C. My string is: NSString *string = [[NSString alloc] initWithContentsOfURL:url usedEncoding:nil error:nil]; Can someone send me a sample of a working code? Thanks in advance, Sagiftw ...

Converting Objective C formatted code to pure C++

Hi, I've recently started learning programming to make my own 3D OpenGL game on the iPhone and have made reasonably decent progress so far. I started off using the basic OpenGL example that is provided with the iPhone SDK which helped me get off to a good start. However, as I'm starting to get the hang of things, it has occurred to me t...

statusbar and superview frame size

I've a typical View based application (mainwindow.xib + viewControler.xib) in which I have HIDDEN the status in the AppDelegate file like this... [[UIApplication sharedApplication] setStatusBarHidden:YES]; then I create various subviews on the mainview (mainly UIWebViews) that are full screen positioned at 0,0. Then I created a button...

Objective-C restart iphone or possibly another method?

I read that there was no method to restart the iPhone (at least that will go through the app store), so I am wondering if you have any other ideas. Basically, at my desk, I receive "No Service"... When I go out to my car (in a service area), I remain in No Service without being able to make a call until I restart my iPhone. I've tried ...

How can I limit a "Run Script" build phase to my release configuration?

I have a shell script that I would like to run at the end of my target's build phase. However, I would like this script to only run when I build with the release configuration. How can this be done? Thanks! ...

linking a button to a certain sound in xcode?

I'm using avaudioplayer and want to add a button to play the sound but i'm not sure how to. Here's current code: #import UIKit/UIKit.h @class AudioPlayerViewController; @interface AudioPlayerAppDelegate : NSObject <UIApplicationDelegate> { UIWindow *window; AudioPlayerViewController *viewController; } @property (nonatomic, re...

Multiple key bindings in XCode

The default key binding for pasting text is command+V. I want to make shift+insert do the same thing. However, when I try to do that, it replaces command+V. I still want command+V to do insertions as well as shift+insert. Is there a way to do that? ...

Path of the project I am working on in Xcode.

I want to know/determine at what path the current project is stored at for an XCode project. (MAC app). Regards ...

can't compile for release, can for debug? [iphone]

Hi I'm trying to compile my project, containing cocos2d and standard UIKit part, i'm trying to do this for iphone 3g/3Gs. The problem is, when i'm building it for debug configuration, it goes like on butter (no errors). But, when i switch to release, i've got over 1300 errors, all of them are like: printscreen almost all of them conta...