This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
| 167eaa6e » | jverkoey | 2009-12-10 | 1 | // | |
| 2 | // Copyright 2009 Facebook | ||||
| 3 | // | ||||
| 4 | // Licensed under the Apache License, Version 2.0 (the "License"); | ||||
| 5 | // you may not use this file except in compliance with the License. | ||||
| 6 | // You may obtain a copy of the License at | ||||
| 7 | // | ||||
| 8 | // http://www.apache.org/licenses/LICENSE-2.0 | ||||
| 9 | // | ||||
| 10 | // Unless required by applicable law or agreed to in writing, software | ||||
| 11 | // distributed under the License is distributed on an "AS IS" BASIS, | ||||
| 12 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||||
| 13 | // See the License for the specific language governing permissions and | ||||
| 14 | // limitations under the License. | ||||
| 15 | // | ||||
| 58ebed0b » | jverkoey | 2009-12-03 | 16 | ||
| fdf5c569 » | joehewitt | 2009-04-10 | 17 | #import "Three20/TTView.h" | |
| 6394c48d » | joehewitt | 2009-02-15 | 18 | #import "Three20/TTURLRequest.h" | |
| 19 | |||||
| 20 | @protocol TTImageViewDelegate; | ||||
| 21 | |||||
| fdf5c569 » | joehewitt | 2009-04-10 | 22 | @interface TTImageView : TTView <TTURLRequestDelegate> { | |
| 6394c48d » | joehewitt | 2009-02-15 | 23 | id<TTImageViewDelegate> _delegate; | |
| 24 | TTURLRequest* _request; | ||||
| d6d7033c » | joehewitt | 2009-06-25 | 25 | NSString* _URL; | |
| 8ecafd28 » | joehewitt | 2009-04-08 | 26 | UIImage* _image; | |
| 6394c48d » | joehewitt | 2009-02-15 | 27 | UIImage* _defaultImage; | |
| 28 | BOOL _autoresizesToImage; | ||||
| 29 | } | ||||
| 30 | |||||
| 31 | @property(nonatomic,assign) id<TTImageViewDelegate> delegate; | ||||
| d6d7033c » | joehewitt | 2009-06-25 | 32 | @property(nonatomic,copy) NSString* URL; | |
| 8ecafd28 » | joehewitt | 2009-04-08 | 33 | @property(nonatomic,retain) UIImage* image; | |
| 6394c48d » | joehewitt | 2009-02-15 | 34 | @property(nonatomic,retain) UIImage* defaultImage; | |
| 35 | @property(nonatomic) BOOL autoresizesToImage; | ||||
| ce8c23ca » | joehewitt | 2009-03-12 | 36 | @property(nonatomic,readonly) BOOL isLoading; | |
| 89d590b4 » | joehewitt | 2009-03-21 | 37 | @property(nonatomic,readonly) BOOL isLoaded; | |
| 6394c48d » | joehewitt | 2009-02-15 | 38 | ||
| 39 | - (void)reload; | ||||
| 40 | - (void)stopLoading; | ||||
| 41 | |||||
| 89d590b4 » | joehewitt | 2009-03-21 | 42 | - (void)imageViewDidStartLoad; | |
| 43 | - (void)imageViewDidLoadImage:(UIImage*)image; | ||||
| 44 | - (void)imageViewDidFailLoadWithError:(NSError*)error; | ||||
| 45 | |||||
| 6394c48d » | joehewitt | 2009-02-15 | 46 | @end | |
| 47 | |||||
| cb872860 » | joehewitt | 2009-03-26 | 48 | /////////////////////////////////////////////////////////////////////////////////////////////////// | |
| 49 | |||||
| 6394c48d » | joehewitt | 2009-02-15 | 50 | @protocol TTImageViewDelegate <NSObject> | |
| 51 | |||||
| 52 | @optional | ||||
| 89d590b4 » | joehewitt | 2009-03-21 | 53 | ||
| 54 | - (void)imageView:(TTImageView*)imageView didLoadImage:(UIImage*)image; | ||||
| ce8c23ca » | joehewitt | 2009-03-12 | 55 | - (void)imageViewDidStartLoad:(TTImageView*)imageView; | |
| 56 | - (void)imageView:(TTImageView*)imageView didFailLoadWithError:(NSError*)error; | ||||
| 6394c48d » | joehewitt | 2009-02-15 | 57 | ||
| 58 | @end | ||||







