Hi! I need a code example that can do the following:
- Load a uiWebview URL upon first opening with the user's Latitude/Longitude coordinates as part of the requesting URL. For example, determine the user's coordinates and turn them into a URL: http://example.com?lat=111.2222&lng=333.4444
-> Then promptly display that URL in a reusable webview.
- If the UIWebview being displayed to the user were to popup a javascript alert, I simply need that alert never shown to the user and instead want the alert's text to be stored as a variable in the app so I may access that variable later when I choose to do so.
- Scan a barcode using Zxing and store the barcode scan as a text variable (in the same manner as we're doing with the javascript alert above). Zxing is free and found here: http://code.google.com/p/zxing/
Lastly, I am asking for the code to have as many comments explaining what each chunk of code is doing. I am not asking for every single line to be commented, but as I am obviously new to coding as much as possible within a clean code layout is appreciated.
That's it! I need the full source code of this example for iPhone. I am not sure if iPad would be completely different code, but if you know both and can include the same example for both platforms it would be extremely helpful. Thank you!
接包方 | 国家/地区 | |
---|---|---|
![]() |
3
Elance_jon
|
|
![]() |
3
Acmesoft_cn
|
|
![]() |
3
Cenonsol
|
|
![]() |
2
Golts
|
|
![]() |
2
Olekbeluga
|
|
![]() |
2
Eleni77
|
|
![]() |
2
Net4nuts
|
|
![]() |
2
Sondeos
|
|
![]() |
2
Omairhamid
(中标)
|
|
![]() |
2
Dougallbright
|
|
0
Benjielin
|