- Home /
Native Alert on iOS (plugin)
Hello, I have been trying to create a plugin with XCode and build it into a DLL or whatever is better with XCode inorder to create a native alert. I need help with how to exactly create the plugins(Example : File > New Project > Whatever) as well as a little snippet of code that will allow me to call the function like this displayAlert("alertTitle", "alertText");
Thank you in advance, I really appreciate your help.
Hi Guys, You can use plugin to show native alert in your unity app/game.
Answer by kayy · Jul 25, 2011 at 09:11 AM
I did it sometime ago and started with the excellent blog entry An Experiment with iPhone Native UI and Unity 3 Pro by Gregg Martin. He provides a running demo for downloading so you can inspect the code. Furtheron I bookmarked a forum thread Unity plugin to handle loading native Cocoa UI's with ease.
When I started integrating m own iOS lib, the most annoying thing was parameter transfer and I ended up in supplying int (=> int*), string (=>const char*), ... because even to get a struct transported to the other end seems to be tricky.
Thats the thing.....Ive been trying for a few days now, my best results were...well nothing. Any way you can help me over TeamViewer or via e-mail. $$anonymous$$ine is fiercemodz@gmail.com I'd like to call it like this in unity displayAlert("Title", "$$anonymous$$essage"); But Im having trouble. All I've got for reference is the Prime31 gyroscope plugin.
To break it down, you should start with the demo project http://clevermartian.com/blog/wp-content/uploads/2010/08/iPhoneNativeUIExperiment.zip (zip file). Next, what exactly is the error? What is the debugger showing for Title variable?
hi! just read this and try to find the blog entry by Gregg $$anonymous$$artin you mentioned. But it seems this link is dead, is there a chance to get this entry somehow ?
Well it disappeared on the mentioned web site. There are some copies around or you can look it up in the famous internet archive wayback machine :-): http://web.archive.org/web/20120706195310/http://clevermartian.com/blog/?p=59