x


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.

more ▼

asked Jul 24 '11 at 09:33 AM

fiercewaffle gravatar image

fiercewaffle
31 5 6 7

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

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.

more ▼

answered Jul 25 '11 at 09:11 AM

kayy gravatar image

kayy
151 4 5 7

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. Mine is fiercemodz@gmail.com I'd like to call it like this in unity displayAlert("Title", "Message"); But Im having trouble. All I've got for reference is the Prime31 gyroscope plugin.

Jul 25 '11 at 09:18 AM fiercewaffle

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?

Jul 25 '11 at 09:44 AM kayy

hi! just read this and try to find the blog entry by Gregg Martin you mentioned. But it seems this link is dead, is there a chance to get this entry somehow ?

Feb 01 at 01:01 PM alphakanal

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

Feb 01 at 01:19 PM kayy

thank you very much! :-)

Feb 01 at 01:25 PM alphakanal
(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x1999
x1953
x392
x50
x9

asked: Jul 24 '11 at 09:33 AM

Seen: 3013 times

Last Updated: Feb 01 at 01:28 PM