iphone

Why is Objective-C converting JSON values to a hash of ASCII character codes?

We are building an iPhone chat application. When sending from the browser to the iPhone a JSON chat message: {"content":"Hi"} The iPhone receives: {"content":{"0":72,"1":105,"length":2}} But, we intend for it to receive the same exact message. To reproduce this issue, first install node.js & redis. Then: Get the code: ...

How to change value of IBOutlets when using Tab Bar Controller

I'm using the Tab Bar project in Xcode to create an app. It gives you a FirstViewController class and xib file. In the xib file there is a UILabel that just says "First View" in the center. I want to know how to programmaticly change the text value of the label that is in a viewController owned by a Tab Bar Controller using a method? ...

How can i bring up the iPhone call screen

I allow my user to select phone numbers in my application. How can I then bring up the iPhone call screen and then if possible, initiate the phone call? ...

Facebook SDK for iPhone authorize error

Hi all, I am developing a Facebook application for iPhone. In my application I am calling the authorize method from a Facebook object just as it is done in the demo application. However, the webview quickly loads, and then closes. Stepping through the program it seems as if the webview is throwing a WebKitDomain error code 102. Does any...

possible to stream wma sound files on iPhone/iPod touch?

Hi there, i searched with keyword "wma" but couldn't find similar posts, so i start this post. My goal is to download wma files from a known website and playback those files. These wma files are recorded radio programs, a sample link looks like: "mms://media.chinabroadcast.cn/eng/music/morning/2010/0825a.wma". Online streaming is accept...

UISlider's track images don't stretch right on iOS 3.2+

I have a UISlider subclass that is supposed to implement a custom look. I'm doing this with stretchable images: UIImage* sliderBar = [UIImage imageNamed: @"SliderLeft.png"]; UIImage* sliderLeft = [sliderBar stretchableImageWithLeftCapWidth: 7 topCapHeight: 0]; sliderBar = [UIImage imageNamed: @"SliderRight.png"]; UIImage* slide...

How to POST a WSDL with wsDualHttpBinding endpoint from iPhone

Is there a way POST or send request to WSDL with endpoint wsDualHttpBinding? It seems that the POST Method like NSURL *url = [NSURL URLWithString:"http://localhost/Project/Login"]; NSString *post = [NSString stringWithFormat:@"%@", "'{\"UserName\":\"user\", "Password\":\"pass\"}'", nil]; NSData *postData = [post dataUsingEncoding:NSA...

Remotely write to a .plist file iPhone SDK

I am wondering if theres a way to remotely write to a plist file stored on my server. The directory the file is located has write access, but i cannot seem to push the new data. Heres my code: NSString *accountURL = [NSString stringWithFormat:@"http://www.mywebsite.com//%@.plist",txtUsername.text]; NSURL *url = [NSURL URLWithString:acco...

tabbar rotating

hi, is it possible to rotate Tabbar with all items(tabbar controller) as it is in landscape when particular touch event is happening in one view (portrait) without shouldAutorotateToInterfaceOrientation? ...

How to send request to WSDL with wsDualHttpBinding endpoint from iPhone

Is there a way POST or send request to WSDL with endpoint wsDualHttpBinding? It seems that the POST Method like NSURL *url = [NSURL URLWithString:"http://localhost/Project/Login"]; NSString *post = [NSString stringWithFormat:@"%@", "'{\"UserName\":\"user\", "Password\":\"pass\"}'", nil]; NSData *postData = [post dataUsingEncoding:NSASCI...

Problem in adding data in sqlite3

I am having a date datatype to be added into the database but i dont know how to insert the date datatype into the database ` +(void)insertbarcodeid:(NSString *)barcode brand:(NSString *)brand productname:(NSString *)productname productsize:(NSString *)productsize productcategory:(NSString *)productcategory productopendate:(NSDate *)prod...

problem in sqlite database ,help!!!!

i have a problem in sqlite database connected with iphone sdk for eg. when i put values in lets say upto 5 primary key.but when i delete them all and put new values ,then the integer primary key start from 6 and not from 1 or 0?what is the reason for that? ...

getting data from server and store in the iPhone

hey all, i want to develop an iPhone app where the app downloads data (say audio clips) from a specified server and stores it locally on the device. then the app should use the data stored in the device rather than stream it from the server. could anybody give me the guidelines as to how this can be done? tutorials and samples also appre...

How can I create a custom control using the iPhone SDK?

What are custom controls, and how do you actually create them using the iPhone SDK? ...

How to play audio file from the pdf in iphone?

I have one pdf in which audio and video file is integrated.I want to play audio file in iphone from the pdf.I dont know how it possible.Please give me idea or solution about that. ...

Efficient, best way to copy a bitmap context?

I have a bitmap context (iPhone/iOS) I am using for offscreen drawing prior to formal rending to a UIView. I'd like to make a copy of the bitmap context prior to performing drawing operations (and ultimately render) in the event I need to do a revert. I haven't found a Quartz API that allows me to easily copy a bitmap context, but mayb...

UIImagePickerController in landscape orientation

I want the UIImagePickerController to start(and stay) in Landscape orientation code. I tried the solution as described here (http://stackoverflow.com/questions/2083672/uiimagepickercontroller-in-landscape) //Initialize picker UIImagePickerController * picker = [[UIImagePickerController alloc] init]; picker.delegate = self; //set De...

OpenGL render issue

(Also asked on the Apple Developer forums) I am new to OpenGL, so be kind :). I seem to have a rendering issue with OpenGL. My app is supposed to draw a line as the user traces his finger across the screen. So, touchesMoved calls the draw function below and passes a NSMutableArray currentStroke which contains point data. The issue I am...

How to pass unichar object?

I need to pass a character to the line no. 2: First method I tried, 1) unichar dicttxt = [[myword lowercaseString] characterAtIndex:0]; 2) fileName = [[NSBundle mainBundle] pathForResource:dicttxt ofType: @"txt"]; 2nd Method I tried, NSString *dicttxt = [[myword lowercaseString] characterAtIndex:0]; fileName = [[NSBundle mainBun...

Access Local files in iphone Programmatically

How can an application access local files (documents etc.) present in the iphone? ...