1
00:00:08,100 --> 00:00:12,690
Hey everybody this is Caleb with Debb slopes and I'm just here to give you a quick little update video

2
00:00:12,690 --> 00:00:14,240
for the core a section.

3
00:00:14,340 --> 00:00:19,520
Apple has changed something an X code 9 Beta 4 that you need to know about.

4
00:00:19,530 --> 00:00:25,970
So you may have gotten to this point where you're setting up the settings for capture photo settings

5
00:00:26,430 --> 00:00:33,540
but in X code 9 Beta 4 you're going to start to notice that it says that available preview photo pixel

6
00:00:33,540 --> 00:00:36,420
format types is no longer available.

7
00:00:36,450 --> 00:00:37,500
That's a problem.

8
00:00:37,680 --> 00:00:43,110
And if you actually look at the definition of the preview photo format from Apple's documentation you

9
00:00:43,110 --> 00:00:50,580
can see that it's a dictionary that must contain the K CV pixel buffer pixel format type key and you

10
00:00:50,580 --> 00:00:55,950
need to choose one of the pixel format types listed in the available preview photo pixel format types

11
00:00:55,950 --> 00:00:56,430
array.

12
00:00:56,490 --> 00:01:01,440
But that's not available anymore so I want to show you the new way to do it so that you can get this

13
00:01:01,440 --> 00:01:02,960
back up and running again.

14
00:01:02,970 --> 00:01:09,780
So go ahead and instead of using a preview pixel type like this and then manually setting a preview

15
00:01:09,780 --> 00:01:15,250
format all you need to do is actually get rid of this Apple no longer uses it.

16
00:01:15,390 --> 00:01:21,300
And for the preview photo format what you can actually do is you can just go into settings and you can

17
00:01:21,300 --> 00:01:28,020
go ahead and set it with the embedded thumbnail photo format because that's what we're using to show

18
00:01:28,020 --> 00:01:32,580
our photo in the image view is we're just using the embedded thumbnail photo format.

19
00:01:32,580 --> 00:01:36,800
That's basically what we were creating with the previous way of doing this.

20
00:01:36,870 --> 00:01:42,870
But when we do this you'll see and I don't know if you saw this in the Apple documentation but preview

21
00:01:42,870 --> 00:01:45,180
photo format is actually a dictionary.

22
00:01:45,930 --> 00:01:51,380
And it requires I think string you and a string and then any for its other value.

23
00:01:51,720 --> 00:01:56,320
And if you look embedded thumbnail photo format is the same thing.

24
00:01:56,340 --> 00:01:58,650
It's a dictionary that uses a string and any.

25
00:01:58,650 --> 00:02:05,600
So we're basically just saying that we want our photos to be the same format and size as a thumbnail.

26
00:02:05,610 --> 00:02:10,230
So when you add this you can build and run and it works perfectly.

27
00:02:10,230 --> 00:02:13,340
Let me show you me pull up in quick time here.

28
00:02:13,350 --> 00:02:17,390
Let's do a movie recording of my iPhone because I need the camera.

29
00:02:17,400 --> 00:02:18,720
And here we go.

30
00:02:18,900 --> 00:02:25,300
When you tap on the screen takes a photo and it loads it up just like we have been doing.

31
00:02:25,300 --> 00:02:30,010
Of course you're not hearing anything because I have my sound disabled but you can see that it is definitely

32
00:02:30,010 --> 00:02:32,470
taking photos and saving them just like before.

33
00:02:32,470 --> 00:02:35,550
So this is just a quick little update video for the core section.

34
00:02:35,560 --> 00:02:37,170
Thanks guys and keep rocking on.

