

The next thing you have to do is, replace the pickerView’s titleForRow() function with the reusingView() function.

To see them click the Library bar’s “Media library” button.

Now, the images you added in the array are locate in the project’s Media library. ItemPhotoList.append(UIImage(named: "star.png")!) ItemPhotoList.append(UIImage(named: "flowers-icon.png")!) Support Worldwide Technical Support and Product Information ni. Its all running on an old XP PC (although I wouldn’t be surprised if it was originally running on a windows 98 PC). ItemPhotoList.append(UIImage(named: "office-phone.png")!) The software is Teklynx labelview XLT+ V6.02 beta 1 R, connected to a Tec b-day443 label printer via a parallel port. ItemPhotoList.append( UIImage(named: "dog.png")!) ItemPhotoList.append(UIImage(named: "Jeep.png")!) There you can create and manipulate a Word report and afterwards save that as PDF. Another option is a workaround with the Create Easy Text Report.vi from the Report Generation Toolkit. ItemPhotoList.append(UIImage(named: "70-tv.png")!) After following the instructions in the link above, the VIs included should be located in the Exaprom PDF 2.0 palette as shown below. ItemPhotoList.append(UIImage(named: "87-wine-glass.png")!) itemPhotoList.append(UIImage(named:"redcar_icon.png")!) In the viewDidLoad() function add eight image names in the itemPhotoList array. Now, to display item images and names in a single component of the pickerView, you’ll have to do the following in the viewController.swift file.ĭeclare an array variable. The item names are stored in the pickerView’s data source. Fix them by using Xcode’s Fix-it tool.ĭisplay Text and Images in The PickerViewĪs of now, the single component of the pickerView is configured to display only item names in its rows. So if you are using a newer version of Swift, it may produce errors. Figure 2-1 Code presented on this page assume you are using Xcode 6.4 and Swift version 1.2.
