iphone

How to change the app preference settings through code?

Hi All, I have listed my app in the device setting app.Now I can change my app settings through the device app settings app. Now what I am trying to do is the reverse. I am trying to make a app so that it can itself change its preferences in the device settings app if I change the preferences of my app from within the app. Any ideas Fri...

UIView Zoom problem

I have an uiview ,In that view i had drawn one chart...I want to zoom in... How can i do this ? Is it possible ? Can anyone help me? Thanks in advance..... ...

AudioQueueStart reporting unsupported format

I'm trying to get audio queue working on an iphone app, and whenever AudioQueueStart is called it gives the "fmt?" result code (kAudioFormatUnsupportedDataFormatError). In the code below i'm setting the format to kAudioFormatLinearPCM, which surely is supported. What am i doing wrong? data.mDataFormat.mSampleRate = 44100; data.mDataForm...

MFMailComposer - works in simulator but not in iPhone 2G

I am trying to add MFMailComposer to my iPhone app and not having much luck getting it to launch in my iPhone 2G. It always launches the email app to the accounts page and closes my app. Works like a charm in the simulator. -(void)viewWillAppear:(BOOL)animated { [super viewWillAppear:animated]; [self displayComposerSheet]; } -(v...

Allocation of several sounds

I'm not sure if I wrote this code well (get clicks on touching buttons rapidly): #import "iEngineRoomAppDelegate.h" #import "iEngineRoomViewController.h" #import "SoundEffect.h" @implementation iEngineRoomAppDelegate @synthesize window; @synthesize viewController; - (void)applicationDidFinishLaunching:(UIApplication *)application { ...

UIBarButtonItem black instead of white

I have that Navigation Controller and I'm adding 1 button by code this way: UIBarButtonItem *configButton = [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"config.png"] style:UIBarButtonItemStyleBordered target:self action:@selector(showConfigWindow)]; self.navigationItem.leftBarButtonItem = configButton; It's working ri...

JQTouch support for IPhone.

Hello Team, I am building a website which provides support on Iphone also. I am using JQTouch jquery library(www.jqtouch.com) which provides multi-touch functionality like swipe, flip, back page. It would be great to hear from you guys on how to extend zoom-in and zoom-out functionality for photos. Does JQTouch provide any readymade func...

Genre of application in iTunes

Hi, I am installing my own app in iTunes, and found it to be unknown genre. Since my app is an News based Genre, i need to make is shown as a news genre instead of unknown Genre. But my app is not yet launched in App store. whether this is the cause or anything else? please suggest Any help would be appreciated. -Sathiya ...

Dynamic uploading content in UINavigation Bar

Hi, In my application i am using UINavigation bar to display the logo of weather icon. But this weather icon needs to updated dynamically. At first i load the images and in text in the navigation bar and then i redirect the controller to UIViewController to load my application fully. After loading my applcation i need to update the ...

Securely data transmission in a consumer application through public IP.

Hi All, I am planning to make a consumer based application on iPhone that will frequently use the webservices for displaying the data. My requirement is to make the data to flow through the air securely. I mean to say that using https web service will secure the data but can we do this on a public IP? To be more clear suppose my server...

Problem registering Push Notifications. HELP!!!

Hello, I've recently started developing iphone applications for a project at school and I've been having some problems testing push notifications. I've read I need to get some SSL certificate from the program portal, but I cannot find the link AppID where I am supposed to get them. Is it really necesary even though I am just starting out...

How do I specifically get a static Web image url and apply it to an iPhone application blank view?

In building an iphone app, I can render a blank view, (say that's all I have, just a generic, full screen view) and I want to populate in that view an image from the web, say, "http://www.mypicture.com/mypicture.jpeg". I want to do this as fast as the network allows and not use the photo roll or any part of the os that the user can see....

How can I fetch information about the app/song/video etc. from iTunes Store?

I need to get an info about the app/song/video by item id from iTunes Store. I've found this: http://ax.phobos.apple.com.edgesuite.net/WebObjects/MZStoreServices.woa/wa/wsLookup?id=324021811&mt=8 But it doesn't work with apps. Is there any public API? UPD: I can get info using this link: http://ax.phobos.apple.com.edgesuite.net/...

iPhone compile for thumb

I've heard it might be a good idea to turn off "compile for thumb" in an iPhone target's settings to increase performance. I'm having some trouble finding this setting though. Since I couldn't find it in my current project, I decided to make a new one (where I could find and set it), and copy my files over to it (and also update all libs...

How to use didReceiveMemoryWarning and viewDidUnload?

What is the best practice to use these two methods for memory management? My current application can easily release its views after a memory warning, because it needs large memory. What do I need to do in these methods? I'm using various nibs in my applications and I'm connecting objects in them to my view controllers without retaining t...

How do I prevent a one pixel border in variable height UITableViewCell from coming out as multiple pixels?

In my test app, I want to style variable height table cells with a single pixel line at the top. This is the drawing code that I'm using, but it doesn't work. Below is the code for the header: // In OneLine.h @interface OneLine : UIView {} @end And the drawing code: // In OneLine.m - (void)drawRect:(CGRect)rect { // Drawing code...

How do I get the current access point's MAC address/BSSID?

My iPhone is connected to an access point through a WiFi connection. Does anybody now how I can retrieve this Access Point's MAC address with Objective-C? ...

How do I call performSelectorOnMainThread: with an selector that takes > 1 arguments?

A typical call to performSelectorOnMainThread: looks like this: [target performSelectorOnMainThread:action withObject:foo waitUntilDone:NO]; where "result" is an argument passed to "action". A corresponding action would be: (void)doSomethingWithThing1:(id *)thing1 What is the correct syntax for calling an action that takes > 1 argu...

iPhone: HTTPS client cert authentication

I'm fighting with a client certificate authentication. When a server needs a credential (a certificate in this case), this method is invoked from NSURLConnection delegate: (void)connection:(NSURLConnection *)connection didReceiveAuthenticationChallenge:(NSURLAuthenticationChallenge *)challenge I want to load a certificate from a file...

PJSIP on Iphone OS 3.0 how to port sound?

I have successfully compiled pjsip and the Siphon project (http://code.google.com/p/siphon/) and it is working good under OS 2.2.1 However It crashes as soon as I try to place a call in OS 3.0 this is because the sound is no longer working that is the ipodsound.c file... has anyone been able to port the sound for 3.0?. What has changed t...