64 Results for ‘UIView’

Advanced Gesture Recognition WWDC 2010 Session 121
UIViews at the top and bottom. So let’s add an UI tap gesture recognizer to that bottom UIView subview, and let’s add an UI pinch gesture recognizer to that UIViewController’s view, the super view of those two subviews that we’ve got. And now let’s put
Building Animation Driven Interfaces WWDC 2010 Session 123
UIView Animations. UIView Animations is the basic UIKit API that you’re going to use most of the time for building animations in your app. We’re then going to talk about transitions. But what are transitions? Transitions are animations between states or different UIs. So, two good examples that
Core Animation in Practice, Part 1 WWDC 2010 Session 424
UIView. And every UIView, as you probably learned earlier today, has a Layer property. So I’m adding this as a sublayer to the view. The blue that you’re looking at is the UIView‘s Layer. And the text is just descriptive. So you’re seeing where the layer
Designing Apps with Scroll Views WWDC 2010 Session 104
UIView and starting from scratch and just subclassing UIView and implementing raw touch handling and doing everything from the ground up implementing an entire scrolling subclass. Even if you didn’t do that, a lot of people we find end up going out and looking for third party frameworks that
Optimize your iPhone App for the Retina Display WWDC 2010 Session 134
UIView as an associated state layer, Core Animation has added its own property called contentScale. Not quite the same as ours, but its equivalent to content Scale Factor when we set UIView, you set the contentScaleFactor, it gets sent down to the CALayer. And as I said just before, it
Swift Interoperability In Depth WWDC 2014 Session 407
UIView. This is going to produce a compiler error because this is a unsafe downcast. How do we deal with this? Well, there’s really two cases here that need that you need to think about. One case is, I know it’s a UIView but for some reason that
What’s New in Cocoa Touch WWDC 2013 Session 203
UIView property called tintColor. So, Andy talked about the fact that we’ve taken the tintColor concept and hoisted it all the way up to UIView, right. So UIView now has this top level tintColor idea. It’s hierarchical. You can set it on your window which will push the
Bringing Your iOS Apps to OS X WWDC 2013 Session 216
UIView or NSView. So, what if so what’s the differences? While they both receive and handle events, they’re both responsible for drawing, but there’s a couple of differences so let’s go in those. The UIView‘s origin is in the upper left and the NSView’s
Enhancing User Experience with Scroll Views WWDC 2012 Session 223
UIView and not a sub-class of anything, and that this thing has one child UIView. I’ll put that right in there. Now let’s let our user put a finger down inside of that child view. The way event delivery on iOS works is we hit test from
Creating Custom iOS User Interfaces WWDC 2014 Session 221
UIView. So what do Spring Animations look like? On the, uh, left side of the screen (for you guys) I have a red box that’s going to animate using the default Ease in/Ease out timing curve. On the right side we have a blue box that’s going to
What’s New in Cocoa Touch WWDC 2010 Session 101
UIView you just attach these things, right. So, there’s API on UIView that says once you’ve got a UIGestureRecognizer, add it to this view, and you can remove UIGestureRecognizer that’s been put on to a view. The delegate methods are pretty straightforward. Gesture recognizers should begin is
Custom Transitions Using View Controllers WWDC 2013 Session 218
UIView. We’re going to quickly review that, because a lot of the animation tools that we are adding in iOS 7 are in fact enhancements of that API. We’ve introduced kind of a UIView block-based spring animation API. There’s a lot of bounciness, and kind of
What’s New in Interface Builder WWDC 2014 Session 411
UIView (or NSView if you’re on the Mac). So I can just right-click on my group here, choose New File. I want a Cocoa Touch class. And I’m going to call this SiteTileView. Subclass UIView. And we’re going to use Swift as our language. I just
Getting Started with UIKit Dynamics WWDC 2013 Session 206
UIView animations. Easier to use API, web integrated with the UIKit model. And we actually include that a lot in iOS 7. We had it at UIView level keyframe animations. And we are adding spring animations to UIView animations. Another great API we have in iOS 7 is motion effects
Simplifying Touch Event Handling with Gesture Recognizers WWDC 2010 Session 120
UIView via a set of methods on UIResponder. Touch is began, touch is moved, touch is ended and touch is canceled. All this sounds familiar right? So how would you go about detecting a gesture using this raw event handling? Well first of all you need to subclass UIView so
Customizing Your App’s Appearance for iOS 7 WWDC 2013 Session 214
UIView controller. I don’t have time to talk about all of how all of this works today, but you can look at the UIView controller header to see details of how that works. Now, another change that you’ll see with the buttons that appear both the navigation bars
Sharing code between iOS and OS X WWDC 2014 Session 233
UIViews and NSViews are flipped relative to each other in the y-axis. The origin for UIViews is on the upper left. And for NSViews is on the lower left. And, you know, that makes our math more complicated. But, you can fix this by overriding isFlipped on NSView. And
Building Interruptible and Responsive Interactions WWDC 2014 Session 236
UIView animations. But there’s other options, as well. So let’s say maybe you wanted to do something a little more advanced and have more types of interactions with other views on screen or more complicated decelerations than just a spring. So also in iOS 7, we introduced a
Building User Interfaces for iOS 7 WWDC 2013 Session 201
UIView. You can set it on any UIView. And it’s actually a hierarchical property. And so for instance, if you were to set red color on your window, then any UIViews in that window which looked at tint color would get red. By default, that includes all default UIKit
Interface Builder Core Concepts WWDC 2013 Session 405
UIView object. Now, normally, just adding a UIView to your user interface would be kind of boring. Now, they are useful as a great way to collect other views together by there’s going to be times when you’re going to want to do some custom display. You’re
What’s New in Map Kit WWDC 2013 Session 304
UIViews but they are other otherwise the same. We’ve got Overlays so you can put areas of interest on your Map and we’ve also got the Local Search and Directions API, so it’s just like OS X or just like iOS on OS X. There are some
Putting Map Kit in Perspective WWDC 2013 Session 309
UIViews. There’s no changes there so all the customization that you’re used to doing continues to work. And in iOS X we’ve introduced them as NSViews so if you’re familiar with NSViews you can use annotation views right out of the box. There’s a few
Future Proofing your Application WWDC 2010 Session 130
UIView, well that’s okay. The problem is it’s entirely possible that UIView in the future will actually have a height property and it might be defined differently than what your app considers height. And then all of our system frameworks that are built on having the height property
API Design for Cocoa and Cocoa Touch WWDC 2010 Session 138
UIView, CLLocation, et cetera. And typically, class names are nouns. And one thing you’ll notice is that we use prefixes. Now, prefixes protect against collisions, and they also differentiate functional areas. A name like view or location is highly generic. It’s possible that two different developers might use
What’s New in Cocoa Touch WWDC 2014 Session 202
UIView, which is layout guides which tells you about that whitespace and allows you to set whatever whitespace you want for your layout. So that’s a property on UIView. It also comes with native support for autolayout, and that’s in the form of new NS layout attributes, including
What’s New in Xcode 6 WWDC 2014 Session 401
UIView will be an incidence of the circular image view at runtime. In Xcode 6, we can make it an incidence of the circular imageView at design time as well. Let me show you how to do that. We’ve added a couple of new source attributes that you can
Working with Metal: Fundamentals WWDC 2014 Session 604
UIView subclass. I’m going to show you a very, very bare bones UIView subclass on the next slide. And you can find a much more complete implementation with a bunch of functionality in our sample code. And then because this is iOS, and this is you know, entirely typical
Building Concurrent User Interfaces on iOS WWDC 2012 Session 211
UIViews, you’re familiar with this class. There is this method UIView setNeedsDisplay. That is the method that you call to say, UIKit I would like to draw something. I’ve implemented drawRect and I want you to call it. Behind the scenes what UIKit is doing is turning around
Accessibility for iOS WWDC 2012 Session 210
UIView with the label inside of it. What we’re going to do is make this an accessibilityElement so you just have to find 1 giant zombie meter. We’ll make sure it has the right label and that will also be the text of the label. Then we want
Mastering Table Views WWDC 2010 Session 128
UIView animations with a class method on UIView, and we’ll do that first by finding the current state of animations enabled, and then we can set Animations Enabled to No. And because we’re a good citizen, we’re going to restore Animations Enabled to the value it was
Integrating Ads with iAd WWDC 2010 Session 112
UIView instead of a table view, I’ll need to change my controller to reflect that change. So I’ll change it into UIView controller. But at this point, I’ve lost the reference to the table view. So we’ll need to add a property to reestablish that connection
Accessibility in iOS WWDC 2013 Session 202
UIView elements. If, you know, if we’re talking about UIView elements, they have an accessibleFrame, an accessibilityFrame rather by default, and that accessibilityFrame is just pulled from the actual frame of that element. But we’re creating these elements, you know, out of thin air so they don’t
Mastering Modern Media Playback WWDC 2014 Session 503
UIView controller companion, MPMoviePlayerViewController and AVFoundation. So some of you might be using MPMoviePlayerController on your applications, which means you get standardized playback UI, but you lack access to the Media Stack, which means you’re limited to basic media playback. Or, you might be using AVFoundation, and thus have
Editing Media with AV Foundation WWDC 2010 Session 407
UIView. This UIView will have a layer associated with it. This layer will have some sort of layer hierarchy. One of these layers will be your AVPlayer layer. This AVPlayer layer actually has a private sublayer for the video. One thing I’d like to point out is all of
Building Adaptive Apps with UIKit WWDC 2014 Session 216
UIViews. And so, traitCollectionDidChange is great for use in UIView subclasses where you want to update your UI as the traits are changing. So we’ve used this one in our Comment Overlay View that you saw earlier. So now that we’ve seen these trait changes, let’s drill
Advanced Performance Optimization on iPhone OS, Part 2 WWDC 2010 Session 147
UIView controllers, override viewDidUnload. Your app delegate will get an applicationDidReceiveMemoryWarning callback and any object can register for a UIApplication DidReceiveMemoryWarningNotification. Now I’m going to go over overriding viewDidUnload in a bit more detail, because this can be a bit tricky if you’re new to the platform. When
Accessibility on iPhone OS WWDC 2010 Session 122
UIView that draws all these tiny little boxes there. We need to return separate accessibility information for each of those boxes because they are each separate elements. So we need an element for October 14th. Likewise we need an element for October 11th. So how we are going to do
Debugging with Xcode WWDC 2013 Session 407
UIViews recursive description, you can send a message to that object, telling it to return the string for that recursive description and print it to the console. And this allows you to see what the child views of that view are. And many of the properties that you might need
Advanced Techniques with UIKit Dynamics WWDC 2013 Session 221
UIView animation, or motion effects. It is just a new tool for rich, real-world like interactions. So the base Dynamics architecture, we have this DynamicAnimator which gives us this context in which we associate various behaviors and we associate dynamic items which are usually views or collection view layout
Taking Control of Auto Layout in Xcode 5 WWDC 2013 Session 406
UIView, and that UIView has its custom class set to my date control class. You can see when I select it, I already have a bunch of constraints, and I can get more details on those constraints in the size inspector over here. And in particular, I want to point
What’s New in Xcode 5 WWDC 2013 Session 400
UIView, it can just do a simple database query to find out everything it needs to know about UIView. It doesn’t have to go parse tens of megabytes of code just to find a way. And this database gets shared across all the files in your project. Suddenly getting
Hidden Gems in Cocoa and Cocoa Touch WWDC 2013 Session 228
UIView and in, more recent versions of OS X, every NSView has access to one of these layers. And a CAAnimation acts on that layer over time, so it’s for example, to change the opacity or change the color, that sort of thing. All right, so we’re good
Model-View-Controller for iPhone OS WWDC 2010 Session 116
UIView controllers own their views. Split views own their master and detail controller, view controllers. Views own their subviews. And UITextViews do not own their text. I know that UITextView has a property on it, but that’s not where the text lives. Make sure that that text lives in
Keynote WWDC 2013 Session 100
UIView Animations. So I yeah. So iOS 7 is available to you developers in beta on the iPhone today. We’ll have betas for iPad coming up in the near in the coming weeks and for everyone else a final release coming this fall. So iOS 7 will be available
Performance Optimization on iPhone OS WWDC 2010 Session 131
UIView, UITableViewLabel for instance. So these things are probably being created along with my UITableView cells. So, Erik’s going to talk about an API that we have that will actually help you avoid this problem. Erik Neuenschwander: So I’m going to show you actually visually what Ben will
Advanced Performance Optimization on iPhone OS, Part 1 WWDC 2010 Session 135
UIView, create animations. You changed some part of your view hierarchy. You maybe changed some properties. And then you commit it. So that’s step two. Now this is where the system calls your layoutSubviews, and drawRect calls. Now this is when the system is ready to take your animation
Game Design and Development for iPhone OS, Part 1 WWDC 2010 Session 401
UIView that you’re about to start animation. You tell it how long you want animation to be. Then you set a rotate and scale transformation. And you state on the view, then you’re done. UIKit does the rest. Couldn’t be simpler. Next I’m going to show
OpenGL ES Overview for iPhone OS WWDC 2010 Session 415
UIView Transform property, which has been there since iPhone SDK first shipped. So, I’m going to put up a snippet of sample code here. So think back to the beginning of the presentation, when I said that the size of your render buffer was your bounds times your scale
Creating Content With iAd JS, Part 2 WWDC 2010 Session 511
UIView and UIKit. It provides the same methods, the same properties, the same behavior that breed the intent of what we’re trying to do here. And ADView is just a base class for anything that’s going to render on your screen. When you want to put something on
Introduction to Auto Layout for iOS and OS X WWDC 2012 Session 202
UIView in UIKit. It’s just addConstraints – simple enought There’s also addConstraints, removeConstraint, removeConstraints. They all go together. Which you might expect So OK, you need to add your constraints to a view – add them to which view? The answer is you want to add them to the two
Best Practices for Mastering Auto Layout WWDC 2012 Session 228
UIView if you’re working on iOS 6 and any other differences I’ll call out when we reach those parts. We’ll just do a brief review, hopefully this is stuff you already know. Auto Layout introduces just 1 new class in its layout constraint. A constrain expresses a
Advanced Text Layouts and Effects with Text Kit WWDC 2013 Session 220
UIView subclass in which we are going to render the glyphs ourselves to achieve multiple truncation. First, I’ll show you at running live and then we’ll explain what some of the code does. Now we’re building and running. And when we run the demo, you’ll notice
Implementing Engaging UI on iOS WWDC 2013 Session 226
UIView anywhere in your outside your app, and we’ll start applying motion effects to it. It’s really that simple. If you want to do some more advanced things, there’s a couple other bits of API for motion effect. The first is UIMotionEffect group. You want to group
A Look Inside Presentation Controllers WWDC 2014 Session 228
UIView‘s layout subviews, and it’s meant to do fine adjustments to the subviews of your hierarchy. And that includes child content views, as well. So when your Presentation Controller got that message that the presentedViewController needs to have a different size, you would change that presentedViewController’s size
Fixing Memory Issues WWDC 2013 Session 410
UIView, view controllers or NSImage that represent a lot of information. So as I showed you earlier in the call graph where I found one place that creates both an object and a VM region this is what happens typically. And it’s when you finally de- reference the object
Advanced Debugging with LLDB WWDC 2013 Session 413
UIView and both implement the drawRect method. What I want to see is how can I stop at these methods, what different ways does LLDB provide?. Well, the most common one is probably stopping at a particular line in the source code. Now this is very easy to tell LLDB
Introduction to Sprite Kit WWDC 2013 Session 502
UIView on iOS. So you drop that in and then you simply tell the view to present your scene. So once you’ve done that, the basic Sprite Kit game loop kicks in. And so this is the sequence of events that’s going to happen every frame once your
Designing Games with Sprite Kit WWDC 2013 Session 503
UIView into the game view, from Game to Pause menu, you can do all these transitions and make your flow much, much easier. So and that’s the end of the session. For any questions or feedback, please contact our evangelist, Allan Schaffer. I’d like to point out for
What’s New in Game Center WWDC 2013 Session 504
UIView controller within you game. Now that throttle rendering call that I’m talking about, right? As I mentioned, the GK Game Center view controller with iOS 7 is partially transparent. Moreover, it’s also doing some blurring and other heavy compositing on the GPU. So in order to make
Core Image Effects and Techniques WWDC 2013 Session 509
UIView, it’s then going back being rendered on the GPU using core animation. And while this is effective and simple, it means that we’re making several trips across the boundary between CPU and the GPU and that’s not ideal, so we’d like to avoid that. Much
View Controller Advancements in iOS 8 WWDC 2014 Session 214
UIView conforms to this directly, which isn’t too surprising. All the existing conversion routines, by the way, stay in place. UIScreen now has grown a couple of properties that vend two different coordinate spaces. One is the default interface oriented coordinate space and the other is the old portrait
Prototyping: Fake It Till You Make It WWDC 2014 Session 223
UIView. All we did is add a little bit of convenience functions to make our lives easier to position a layer and to load an image into that layer. So by default, we have a Layer called screen. It stretches across the whole of the physical screen. And so to
Advanced Swift Debugging in LLDB WWDC 2014 Session 410
UIView, I’m really pretty, look at me. The interesting thing is unlike people’s hats, data can have multiple types. The same piece of data can wear multiple hats at the same time. How is that possible? There’s a number of ways to look at that. One of
What’s New in Core Audio WWDC 2014 Session 501
UIView, you can choose to create a view controller if you want to add them to a UI popover view on your iPad, or if, the example demonstrated it, if you want to embed that directly in the content of your app you can do that as well. Let’s