1
00:00:08,050 --> 00:00:12,610
Hey everybody this is Caleb with Dub's slopes and I'm just here to give you a quick little update video

2
00:00:12,610 --> 00:00:14,200
for the core M-L section.

3
00:00:14,260 --> 00:00:19,430
Apple has changed something in X code 9 Beta 4 that you need to know about.

4
00:00:19,450 --> 00:00:25,900
So you may have gotten to this point where you're setting up the settings for Abey capture photo settings

5
00:00:26,380 --> 00:00:33,490
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,490 --> 00:00:36,370
format types is no longer available.

7
00:00:36,400 --> 00:00:37,500
That's a problem.

8
00:00:37,630 --> 00:00:43,060
And if you actually look at the definition of the preview photo format from Apple's documentation you

9
00:00:43,060 --> 00:00:50,530
can see that it's a dictionary that must contain the K C.V pixel buffer pixel format type key and you

10
00:00:50,530 --> 00:00:55,900
need to choose one of the pixel format types listed in the available preview photo pixel format types

11
00:00:55,900 --> 00:00:56,370
array.

12
00:00:56,440 --> 00:01:01,390
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,390 --> 00:01:02,800
back up and running again.

14
00:01:02,890 --> 00:01:09,730
So go ahead and instead of using a preview pixel type like this and then manually setting a preview

15
00:01:09,730 --> 00:01:15,200
format all you need to do is actually get rid of this Apple no longer uses it.

16
00:01:15,340 --> 00:01:21,220
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,220 --> 00:01:27,970
go ahead and set it with the embedded thumbnail photo format because that's what we're using to show

18
00:01:27,970 --> 00:01:32,520
our photo in the UI image view is we're just using the embedded thumbnail photo format.

19
00:01:32,530 --> 00:01:36,720
That's basically what we were creating with the previous way of doing this.

20
00:01:36,790 --> 00:01:41,980
But when we do this you'll you'll see and I don't know if you saw this in the Apple documentation but

21
00:01:42,400 --> 00:01:44,880
preview photo format is actually a dictionary.

22
00:01:44,980 --> 00:01:45,670
OK.

23
00:01:45,880 --> 00:01:48,350
And it requires I think string.

24
00:01:48,370 --> 00:01:51,320
Yeah a string and then any for its other value.

25
00:01:51,640 --> 00:01:56,270
And if you look embedded thumbnail photo format is the same thing.

26
00:01:56,290 --> 00:02:01,450
It's a dictionary that uses a string and any so we're basically just saying that we want our photos

27
00:02:01,720 --> 00:02:05,550
to be the same format and size as a thumbnail.

28
00:02:05,560 --> 00:02:10,180
So when you add this you can build and run and it works perfectly.

29
00:02:10,180 --> 00:02:13,300
Let me show you we pull up in quick time here.

30
00:02:13,300 --> 00:02:17,110
Let's do a movie recording of my iPhone because I need the camera.

31
00:02:17,350 --> 00:02:18,650
And here we go.

32
00:02:18,820 --> 00:02:25,240
When you tap on the screen takes a photo and it loads it up just like we have been doing.

33
00:02:25,240 --> 00:02:29,980
Of course you're not hearing anything because I have my sound disabled but you can see that it is definitely

34
00:02:29,980 --> 00:02:32,410
taking photos and saving them just like before.

35
00:02:32,410 --> 00:02:35,500
So this is just a quick little update video for the cornmeal section.

36
00:02:35,500 --> 00:02:37,110
Thanks guys and keep rocking on.
