I tried [NSString stringWithUTF8String:(const char*)(myWString.c_str())] but that returns a single character string.
This is on the iPhone by the way, if that matters any :)
On iPhone, iPod touch and (presumably) iPad, Apple has multi-touch event handling available via JavaScript in Mobile Safari. I know the Nexus One recently added multi-touch support via an update, and I believe webOS is also multi-touch enabled. Do Android 2.1 and/or webOS have access to multi-touch in the browser, or is this currently exclusive to…
I need to hash a string using the MD5 technique in cocoa. Any frameworks that are used must be able to be accessed on the iphone. please provide code if possible.
Is there a way to create a lightning effect on the iPhone using opengl?(like this app)
Right now I have modified the glpaint sample to draw random points around a line (between two points that the user touches) and then connecting them, but the result is a zigzag line that constantly jumps around and lags horribly on the actual device.
hai to all... i am trying to mark some places on map from xcode(iphone app) but now i can mark the only 1 place at a time ..i want to mark the so many places at a time with titles for them could any one help me its urgent
thanks
Hi, i have made an application in iphone which supports video recording and i want it to launch on iPad too but currently i dont know whether ipad device supports voice recording or not. can anyone please tell me whether IPAD SUPPORTS VOICE RECORDING???
thanks...
I am having an issue where in reordering my UITableViewCells, the tableView is not scrolling with the cell. Only a blank row appears and any subsequent scrolling gets an Array out of bounds error without any of my code in the Stack Trace. Here is a quick video of the problem.
Here is the relevant code:
- (BOOL)tableView:(UITableView…
I was leak-testing my current project and I'm stumped. I've been browsing like crazy and tried everything except chicken sacrifice. I just created a tiny toy project app from scratch and I can duplicate the leak in there. So either UIWebView has a leak or I'm doing something really silly.
Essentially, it boils down to a loadRequest:…
Safari on iPhone automatically creates links for strings of digits that appear to the telephone numbers. I am writing a web page containing an IP address, and Safari is turning that into a phone number link. Is it possible to disable this behavior for a whole page or an element on a page?
I think there is no way to set the lock screen wallpaper on the iPhone programmatically (with ref to this question), but with the 3.2 SDK and the ability to set the wallpaper on the home screen on the iPad, does the SDK allow this to be done via APIs now?
I looked up the developer reference, but i could not find anything useful.
I'm familiar with some of the basics of Quartz 2D drawing, like drawing basic shapes and gradients and so on, but I'm not sure how to draw a shape with a "beveled" look, like this:
Essentially we've got a shine on one corner, and maybe some shading in the opposite corner. I think -- I didn't make this image, although I'd like to…
Is there a way to create a lightning effect on the iPhone?(like this app)
Right now I have modified the glpaint sample to draw random points around a line and then connecting them, but the result is a zigzag line that constantly jumps around and lags horribly on the actual device.
Does anyone know of any good resources or tutorials on how to write files to Windows Azure and read the files using Objective C? (for an iPhone app)
Thanks!
In my iphone app, I need to project 3d scene into the 2D coordinates of the screen for some calculations. My objects go through various rotations, translations and scaling. So I figured I need to multiply the vertices with ModelView matrix first, then I need to multiply it with the Orthogonal projection matrix.
First of all am on…
Hi all:
I have recently started creating an iPhone application using Appcelerator's Titanium. Since the application is essentially all JS, I needed some advice on how I should organize this project.
It's becoming very easy to just create long procedural files for each view in the application. Is there a way I can incorporate…
Trying to write a simple paint program for iPhone, and I'm using Apple's glPaint sample as a guide. The only problem is, painting doesn't work on a white background, since white + colour = white. I've tried different blending functions, but haven't been able to hit on the right combination of settings and/or brushes to make…
I am working on quite complex app with huge sync procedure beetwen iphone and web server. I have no troubles with adding records, until I run sync procedure in separete thread, and It will update data on serwer, and send them back to iphone. But after this procedure, inserting new data cause error, such as this:
2011-01-07…
Hi Friends,
Is there any way to change the frame of the UIAlertView in iPhone or iPad. I tried changing the frame in the following delegate method- (void)willPresentAlertView:(UIAlertView *)alertView;
but even then the width of the Alertview remained unchanged. And I think a small Alertview in iPad will not make sense.…
Hi All
I am using animated image (gif image) in webview
but problem is that it showing while background for transparent image. even I set the background color of webview is transparent.
Is any way to do it transparent or any other way to show transparent animated image in Iphone SDk
Thanks
Amit Battan
Hi,
I have a directory structure of directories and files that I want to render as a tableview in an iphone app. I'd rather have this generated dynamically rather than have to maintain a XML PLIST or whatever. i.e. replicate the Explorer functionality in windows where a user can traverse the structure and then select…
Hi
I need to move a sprite from one CGPoint to another using Cocos2d for the Iphone. The problem is that the animation should be along a bezier.
Basically I would use this :
id move = [CCMoveTo actionWithDuration:.5f position:ccp(100,200)];
[sprite runAction:move];
Now how can I do this in a non linear path ?
Thx
I need to add a view to window on iPhone, so i tried to do this: [[UIApplication sharedApplication] windows], but it seams that the array contains only one window.
Can anyone tell me what i'm not doing write/what i need to do?