Welcome, Guest
Username Password: Remember me
  • Page:
  • 1
  • 2

TOPIC: Images

Images 1 year, 5 months ago #1

Afternoon

Is it possible to add images instead of text to a field such as taking it from the Camera Roll on the iphone ?

I did see that with customization, you can add an image to make it look nice, but wanted to be able to add it as I go.

Iain
  • ihmunro
  • OFFLINE
  • Expert Boarder
  • Posts: 135
  • Karma: 0

Re: Images 1 year, 5 months ago #2

Yes Iain, please check out the documentation of SCImagePickerCell. Please tell me if you still have further questions.
  • tarekskr
  • OFFLINE
  • Administrator
  • Posts: 2402
  • Karma: 72

Re: Images 1 year, 4 months ago #3

Hi Tarek

I checked out the documentation on SCImageOickerCell and came up with:

break;
case 6: // Photo Field
customCell = [SCImagePickerCell cellWithText:cellText withBoundObject:customField
withImageNamePropertyName:@"fieldValue"];

Once I add the cell to the App and go back to it, when I click on the cell, it just turns blue.

Any ideas ?

Iain
  • ihmunro
  • OFFLINE
  • Expert Boarder
  • Posts: 135
  • Karma: 0

Re: Images 1 year, 4 months ago #4

Hi Iain,

I tried your code on the application you've sent me earlier, and everything seems to work normally. Are you able to send me your updated application on our support email? Thanks!
  • tarekskr
  • OFFLINE
  • Administrator
  • Posts: 2402
  • Karma: 72

Re: Images 1 year, 4 months ago #5

Thanks for sending in your project. You've got the index wrong again: you create the photo field if the index is 6, while it should be 5. Please note that Objective-C arrays start at zero index.
  • tarekskr
  • OFFLINE
  • Administrator
  • Posts: 2402
  • Karma: 72
Last Edit: 1 year, 4 months ago by tarekskr.

Re: Images 1 year, 4 months ago #6

Hi Tarek

I see that now - I was counting from 1 instead of 0, but I also forgot to add back in my Multiple Line Text Field - it is working now.

AFter installing it on my iphone, I can take pictures or use existing but have noticed a couple of things:

After I name the field, it does not add it back in like the the rest of the fields I have created.

In addition after taking a photo, the App crashes. When I got back in, the field is there, but the photo is gone.

Any ideas ?

Iain
  • ihmunro
  • OFFLINE
  • Expert Boarder
  • Posts: 135
  • Karma: 0
  • Page:
  • 1
  • 2
Time to create page: 1.29 seconds