How to make an age calculator app with UIPickerView? - xcode

I'm trying to make an age calculator app with UIPickerView. I have the code to do the calculations, but how do I insert them to work with a UIPickerView?
The age calculation code is in an NSString
- (NSString *)age:(NSDate *)dateOfBirth
Any help is appreciated.
Thanks

The best place for learning how to accomplish that would be in apple's docs. Here is the link for the doc's. it also has 5 sample codes links inside it that is going to be of a great help to you. Here s the link:
http://developer.apple.com/library/ios/ipad/#documentation/UIKit/Reference/UIPickerView_Class/Reference/UIPickerView.html

Related

Google Analytics Event Image Tag Creation

Wondering if someone can help me...
I'm working with an application system that only accepts simple img tags for tracking, they won't take JS or GTM at all.
Is it possible to create these for events, so I can create the necessary goals within Google Analytics?
I have the event like so:
ga('send','event', 'ATS','Application', 'Application Start',0,{'nonInteration':false});
But obviously I need the img part and the UA-ID etc. I'm not great with this stuff and all the documentation I can find relates to email sends, which isn't applicable here.
Also, it's for a page load.
Many thanks for any help!
Tom
yes, you can build up your simple image tag using Measurement Protocol. You can use handy Hit builder tool to populate a necessary event url
For those reading in the future... This is what ended up working:
<img style = "width: 1%; ; "src="https://www.google-analytics.com/collect?v=1&t=event&tid=UA-XXXXXXXX-1&cid=555&ec=ATS&ea=Application&el=Application%20Start&ni=0"alt=""height="1"/>
I used the hit builder mentioned above: https://ga-dev-tools.appspot.com/hit-builder/ (thanks Дмитро Булах) to determine which parameters I needed and added the collect query to tell them to be sent to GA.
I put the cid as 555 to anonymise it (don't know if that was a good idea), then put the whole thing inside an img tag I lifted from somewhere else.
Cheers,
Tom

Backend Product Info Grid Modificaiton

I want to create a new text field right under the SKU text field in the Product Information > General tab and populate it with the product's attribute set value. What I want can be seen in the picture below.
Unfortunately, for the past 4 hours I have been trying to locate the file that includes the code which produces the specific layout but so far I had no luck. I 'd be really grateful if anyone could give me a heads up.
Thank you for your time!
Enable backend path hints to find out which file it is. You can do it this way.
http://www.classyllama.com/development/magento-development/enable-templateblock-hints-in-admin-panel
Please note this is basically hacking. A better way to do it would be to follow something like this
http://www.marketingadept.com/blog/2014/01/magento-developers-add-a-custom-field-to-the-category-admin-page/
It's up to you, speed or do it the right way. Goodluck

MVC3 How to implement result browser like twitter/facebook do it (without paging)

I'm looking for leads on how to implement a (search-)result browser without using paging. But more like how twitter/facebook do it.
At first only 10 or so results need to be displayed but when scrolling down, more results (if any) should be added asynchronously. I've found examples with a [more] button at the end but I would like the browser to automatically fetch more when the bottom of the pane is reached.
I'm having trouble finding the right examples. Probably because I don't know what keywords to google on...
Hope you can help me out in the right direction!
Kind regards,
Paul
I advise you read following article regarding this subject:
Infinite Scroll in ASP.NET MVC
There is also a sample application available here.
Refer to the Replace paging with jQuery and subsonic continuous scrolling method blog post.
Have a look at the following pages:
On Scroll down how to make ajax call and get the respone data
create-a-dynamic-scrolling-content-box-using-ajax
I believe that should help you!

Link to a specific image/slide in gallerific

I'm having problems with something which seems like an easy task, and most probably a stupid question. It will probably be my all time low experience in programming but I would really appreciate any help!
I'm using Galleriffic to display my portfolio site, and I am looking for a way to directly link to an image+description not being the first in the gallery. I would like it to link from other webpages, or from plain text/pdf documents.
In short, I would like it to link to a webaddress of slide 5 with something like:
Slide 5
but doing it this way obviously doesn't work.
Although others have tried to explain:
https://stackoverflow.com/a/7910501/1074297
jquery cycle link from external page to specific slide?
I can not seem to accomplish it, and it does not help at all that I am not a programmer.
not sure if it is too late, have been search the solutions for whole day, final found out the example 4 in the official website actually make the #link show on the address....so you can actually link the specific image ('slide'') from external page...amazing!!!!!
check this out
http://www.twospy.com/galleriffic/example-4.html#5
You can find the script after all the or just before ... and place it to your template...it works well for me, hope it helps, good luck

multi column article display module for joomla

Does anyone know where I could find a FREE module that displays articles along with images on multiple columns like here http://raxo.org/demo.html ?
I've been on this for a few days now, I just know there is something out there..
Thanks!
Try Gavick News Show Pro. http://tools.gavick.com/newshowpro.html
Eventually, back then, I edited the template myself. Couldn't find a module that did exactly what I wanted.

Resources