iphone

DragonFireSDK and iPhone development on Windows

So in previous questions about iPhone development on Windows, the basic/easy answer has been "just get a mac." However, I noticed a comment that mentioned DragonFireSDK. But no one else said anything about it? Has anyone tried this? It look pretty legit to me, but I'm new to the iPhone world. I just find it weird that no one has discu...

how to set wallpaer and ringtone in iphone sdk

how to set wallpaer and ringtone in iphone sdk ...

Change app name in apple store of an already released/available iOS app

Hi, I released my iOS app in Apple App Store some weeks ago and want to rename my mobile app now (I only want to add a space). I did not found an "edit name" button in iTunes Connect so I tried to find a solution via google. But I did not find anything about this. Can someone tell me how to rename the app? Is it enough the rename the ap...

Class specific data

Hi, using xcode I would like to achieve a public shared class that stores its own data. So, if I'm in one class I can call it from another and retain persistence. For example, I have multiple viewcontrollers for an iPhone project. When the app is opened, it checks with a seperate service if that player is logged in and returns some inf...

How to add Activity Indicator as subview to UIButton?

Can we add activity indicator as subview to UIButton? If yes then plz tell me how to do that? I used [button addSubview:activityIndicator]; Not working... ...

add images to toolbar

hi all, i have 5 UIbarButton items in a toolbar, how can i set images on each barbutton, i tried through IB, but it not coming up, how can i do it ptogrammatically? one of bar button looks like this aBar = [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"a.png"]style:UIBarButtonItemStylePlain target:self action:@selector(aMe...

Optimizing C++ code for performance

Can you think of some way to optimize this piece of code? It's meant to execute in an ARMv7 processor (Iphone 3GS): 4.0% inline float BoxIntegral(IplImage *img, int row, int col, int rows, int cols) { 0.7% float *data = (float *) img->imageData; 1.4% int step = img->widthStep/sizeof(float); // The subtraction by o...

Three20 pros and cons

I believe a lot of people have heard of and even used three20 library for building their apps. What's the pros and cons of using it? what's your experience so far - starting from ramping up, app design, building, to approval, and future maintains... I am interested in picking it up, attracted by the UI elements that not easily get from ...

Cocos2d Hello World Application is Leaking Bytes

I created a new Cocos2d application using the Cocos2d template. This is the simple "Hello World" application. I then used the instruments to check for memory leaks without changing a single line of code. And to my amazement I get memory leak here is the result: ...

iphone create placemark from latitude and longitude

Hi there I want to place "pins" on my map. I've got the one for the user's location. Now I'm downloading a feed of locations from the internet. For each one I receive a latitude and longitude. I want to place these all on the map. I know I have to use a reverse geocoder, but I'm not entirely sure how to do this. Plus I read somewhere ...

Why can't I connect the File's Owner to new Views in iOS SDK?

I am working on an iPhone SDK project using Xcode 4 Preview. I am in the IFB view and have deleted the default view icon and brought in two new views which I have named Portrait and Landscape. I should be able to control drag from the File's Owner to the two views to connect them, but the usual HUD does not appear and I cannot connect th...

UILabel strange behaviour

hi, i have this: - (IBAction)checkupdate { statusText.text = [[NSString alloc] initWithFormat:@"Checking......"]; everytime i press button, the string get display, ok no problem with that. now when i add NSURLRequest *theRequest = [NSURLRequest requestWithURL: [NSURL URLWithString:@"http:/myserver/version.plist"] ...

Displaying content from an RSS feed in an iphone app

I have seen some tutorials on the subject, but they all go half into it and then leave a person wondering. How can I stream an rss feed into an iphone app. I know the xml should be read in, parsed etc. But then I am not sure how to display the information I need like, images, embedded videos etc. If someone could just point me in t...

how to navigate user to Location Service in system preferences

Hi here, i want to know if it's possible to implement following behaviors: take system app "Map" for instance: 1. user turned off location service from system preferences 2. user runs Map app 3. Map app will detect that location service is disabled, it pops an alert. if user clicks on the ok button from the alert view, it will redirect ...

How can i compare two audio files on the basis of certain parameter say maximum decibel ?

Hello all, I am trying to compare two .caf files on the basis of some parameter, say maximum decibels or duration of files. I have recorded these two files using the AVAudioRecorder class using the following settings: NSMutableDictionary* recordSetting = [[NSMutableDictionary alloc] init]; [recordSetting setValue :[NSNumber numberW...

UIViews do not draw on app start but show after rotation

I am writing an app that loads 3 levels of UIViewControllers on start up. When the app launches the Window view and 1st sub view show just fine. The 2nd and 3rd views load but are not visible. When I rotate the simulator the 2nd and 3rd views display properly. Every subsequent rotation of the simulator shows the view properly. How c...

Preprocessor error in NSLog

Hey Guys, At the moment im driving crazy with a simple problem. I cannot imagine what's wrong here. In BlaBlaBla_prefix.pch I define the following: #import "SMDeviceManager.h" #define DeviceSpecificResourceName(name) [SMDeviceManager deviceSpecificResourceName:(name)]; But if I know use this function in my code inside a NSog()-call...

NSArray Memory Management

For some reason when I release the NSArray I get the EXC_BAD_ACCESS exception. Here is the implementation: -(void) loadAllAlphabets { NSBundle *bundle = [NSBundle mainBundle]; NSArray *imagesPath = [[NSArray alloc] init]; imagesPath = [bundle pathsForResourcesOfType:@"png" inDirectory:@"Images"]; alphabets = [[NSMut...

closures handled differently on desktop browser and mobile safari?

Here's a simple javascript program: var $d = {}; var AudioPlayer = function(filename, timeUpdateCallback, playbackDone){ // An HTML5 audio player is defined here. } $d.AudioPlayer = AudioPlayer; var AudioManager = function(chapterId){ var audioPlayer; var me=this; this.next = function(){ ... ...

Set front-facing camera in iPhone SDK

I would like to have my app open the camera (presently UIImagePickerController ) front-facing if available. (Iphone SDK). How can I do that? ...