Skip to main content

Posts

How to call any objective c plugin method on click event of html button

I am new in phonegap development. I have one html page which contains one textfield and one button. I want to call my plugin method -(void)nameOfMethod:( NSMutableArray*)paramArray withDict: (NSMutableDictionary*) options which is inside the my plugin class and it getting text from my html text field and displaying alertview.I don't have have idea how to call this method via a javascript .I did a small part of coding in javascript <head><script type="text/javascript" src="encryptdata.js"></script></head> <body> <input type="password" name="confirmPassword" id="confirmPassword" value="" /> <input type="button" value="FetchR" onclick="fetchRelation()"/> </body> encryptdata.js function fetchRelation() { var getvalue=document.getElementById('confirmPassword').value; //what is next step....... to send the data to the plugin

Need SQLite3 APIS for iPhone

I need to add some Database stuff in my iPhone application. i know how to use Database methods manually. But i want to prebuilt APIs which allows me to create tables, insert, delete and update records according to my tables. So is there any kind of prebuilt APIS for sqlite3 in Iphone. Please guide me if there is any. Thanks alot.

UIScrollView not scrolling although contentSize is smaller than UIImageView

So I have a UIImageView as a subview of UIScrollView, I've set the contentSize to be smaller than the UIImageView width and height, however it doesn't allow me to scroll.. why is this? Here's some code: UIImage * image = [UIImage imageWithData:data]; UIImageView * imgView = [[UIImageView alloc] initWithImage:image]; [imgView setUserInteractionEnabled:YES]; //[imgView setContentMode:UIViewContentModeScaleAspectFill]; [imgView setBackgroundColor:[UIColor clearColor]]; [imgView setAutoresizingMask:UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight]; [imgView setFrame:CGRectMake(0, 0, imgView.frame.size.width, imgView.frame.size.height)]; CGRect imgFrame; imgFrame.size.width = originalImageSize.width; imgFrame.size.height = originalImageSize.height; imgFrame.origin.x = imageOriginPoint.x;

How can i get all calendar and its events from iphone app?

Good Day to you. I have used iCal events in my app. I have add events to iCal and retrieve/delete the events from iCal from my sample iPhone app. Now, i want to show all the calendars what are the calendars user synced in their iPhone(Eg : Google calendar). Then i want to retrieve the events from other calendars except iCal. How can i get all the synced calendars from iPhone? I searched my level best in Google but, can't to get right answer. Can you please help me? Thanks in advance.

App crashing in cocos2d app on device when nothing happening

I have a somewhat simple game that I'm making and now that I'm testing what I consider a bare bone version of the app on devices, I keep getting crashes over and over. I'm fairly new at debugging on actual devices, so any help would be great. The really weird part is that it will usually crash when nothing is firing. No touches, no animations, nothing is happening. I've tried running Instruments to check for memory leaks. All I find are two objects that are both created in the menu scene. I'm changing scenes using Game *game = [Game nodeWithPlayers:arr Tutorial:NO]; [[CCDirector sharedDirector] replaceScene:game]; which sends some data (mainly # of players) to the Game scene. I put a comment in the dealloc of my menu scene and it fires, so I know that's happening. The two objects that are reported as memory leaks are my MenuManager object that helps w/ some menu animations and positions in the menu scene, and my SoundManager object which at the moment

Need help programming iOS 5.0 "WeeAppPlugin&rdquo;

I decided today that I'd like to develop a widget for jailbroken iDevices, however I haven't found any guides/tutorials for this. I did, however, find a template of sorts but it used Theos, which I'm unfamiliar with as I use Xcode for my development. Can anyone point me in the direction of a tutorial for this? I know the structure itself is still rough since it's brandnew but I'll take any info that I can find. Thanks for the help!