Igy hivjak a forgo kis kurzort es itt van rola a leiras.
Fontos, hogy a hidesWhenStopped property default YES, tehat ha nem inditjuk el a porgest a startAnimating-gal es nem allitjuk be a hidesWhenStopped-et NO-ra akkor hiaba pakoljuk ki valahova a View-t, nem fogjuk latni.
Saturday, August 29, 2009
Tuesday, August 25, 2009
Monday, August 24, 2009
Kepek leszedese iPhone-rol
Az Image Capture megoldja es van egy Cameras nevu plugin ami megkonnyiti a dolgot:
With familiar System Preference functionality, Cameras allows you to manage what happens when you connect your:
- Digital camera
- iPhone
- Digital media reader
- Any photo device
In addition to launching a specific application when you connect a camera, you can also have your images download automatically. Never again spend time launching the right app or quitting apps that you didn't want to launch.
Friday, August 14, 2009
Maximum hossz beallitas UITextField-ben es UITextView-ban
Itt van egy leiras, de a lenyeg:
- A View implementalja aUITextViewDelegate vagy UITextFieldDelegate protokollt.
- UITextView eseten a textView:shouldChangeTextInRange:replacementText method-ban, UITextField eseten pedig a textField:shouldChangeCharactersInRange:replacementString method-ba kell tenni az ellenorzest
Azt kell megnezni, hogy [[textView text] length] > 0 es
range.length == 0
(range.length 1 lesz, ha torlok egy karaktert)
Illetve UITextField eseten textView helyett textField es range helyett string.
Azt nem tudom, hogy ez mukodik-e igy paste-nel is, mert azt meg nem sikerult kiprobalni a Simulatorban.
Labels:
UITextField,
UITextView
Wednesday, August 12, 2009
thumbnail betoltese UITableViewCell-be
Kell egy custom UITableViewCell aminek van egy UIImageView propertyje
pl.:
IBOutlet UIImageView *image;
...
@property (nonatomic, retain) IBOutlet UIImageView *image;
Es ebbe igy lehet betolteni egy kepet file-bol, ha tudjuk hol van:
NSString *filePath = ...;
[[cell image] setImage:[[UIImage alloc] initWithContentsOfFile:filePath]];
Labels:
thumbnail,
UIImageView,
UITableView,
UITableViewCell
Tuesday, August 11, 2009
Hova teszi a Simulator a kepeket es a thumbnaileket
Ide:
/Users/xxx/Library/Application Support/iPhone Simulator/User/Media/DCIM/100APPLE
A thumbnaileket pedig ide ala a /.MISC-be, de ez finder-ben alapbol nem latszik
Itt van egy csomo THM ami valojaban 75x75 pixeles JPG es BTH ami nem tudom micsoda.
Labels:
iPhone Simulator,
media,
thumbnail
Monday, August 10, 2009
Video lejatszasa iPhone-on
MediaPlayer frameworkkel nagyon egyszer.
Labels:
MediaPlayer,
movie,
play
nehany cikk a UIImagePickerController-rol
- airsource: Views of UIImagePickerController
- Lajos Kamocsay: custom UIImagePicerController camera view
- Life in The Clouds: Recorded video from iphone 3gs
dot notation vagy bracket notation
Itt van a teljes cikk az eschatology-n, de a lenyeg:
- Hasznaljunk @property deklaraciot az object state-jeinel es ezeket dot notation-nel hivjuk.
- Hasznaljunk method deklaraciot az object behavior-jainal es ezeket bracket notation-nel hivjuk.
Labels:
bracket notation,
dot notation,
Objective-C
Subscribe to:
Posts (Atom)