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:
...
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?
...
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?
...
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...
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...
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...
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...
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...
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?
...
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...
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...
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?
...
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...
What are custom controls, and how do you actually create them using the iPhone SDK?
...
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.
...
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...
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...
(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...
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...
How can an application access local files (documents etc.) present in the iphone?
...