Thursday, November 5, 2009
Monday, November 2, 2009
Button (vagy barmi mas) UITableView ala
Thursday, October 29, 2009
Cell Styles
UITableViewCellStyleDefaultA simple style for a cell with a text label (black and left-aligned) and an optional image view. Note that this is the default style for cells prior to iPhone OS 3.0.
Available in iPhone OS 3.0 and later.
Declared in
UITableViewCell.h.UITableViewCellStyleValue1A style for a cell with a label on the left side of the cell with left-aligned and black text; on the right side is a label that has smaller blue text and is right-aligned. The Settings application uses cells in this style.
Available in iPhone OS 3.0 and later.
Declared in
UITableViewCell.h.UITableViewCellStyleValue2A style for a cell with a label on the left side of the cell with text that is right-aligned and blue; on the right side of the cell is another label with smaller text that is left-aligned and black. The Phone/Contacts application uses cells in this style.
Available in iPhone OS 3.0 and later.
Declared in
UITableViewCell.h.UITableViewCellStyleSubtitleA style for a cell with a left-aligned label across the top and a left-aligned label below it in smaller gray text. The iPod application uses cells in this style.
Available in iPhone OS 3.0 and later.
Declared in
UITableViewCell.h.
Discussion
In all these cell styles, the larger of the text labels is accessed via the textLabel property and the smaller via the detailTextLabel property.
App Version
Thursday, October 15, 2009
SubString keresese NSString-ben
Monday, October 12, 2009
Honnan lehet tudni, hogy Simulator-ban fut-e az app
It's in the SDK docs under "Compiling source code conditionally"
The relevant definitions are TARGET_OS_IPHONE and TARGET_IPHONE_SIMULATOR, which will be defined provided that you
#include "TargetConditionals.h"
Since that won't exist on non apple platforms, you can wrap your include like this
#ifdef __APPLE__
#include "TargetConditionals.h"
#endif
before including that file
So, for example, if you want to check that you are running on device, you should do
#if !(TARGET_IPHONE_SIMULATOR)Thursday, October 8, 2009
GUID generalasa iPhone-on
+ (NSString *)GetUUID
{
CFUUIDRef theUUID = CFUUIDCreate(NULL);
CFStringRef string = CFUUIDCreateString(NULL, theUUID);
CFRelease(theUUID);
return [(NSString *)string autorelease];
}Monday, October 5, 2009
Friday, October 2, 2009
Fast Enumeration
Tuesday, September 22, 2009
Fenyes gombok keszitese
Tuesday, September 15, 2009
Andy Finnell: Don’t lose your keys
Andy Finnell: [UIImage imageNamed:] is a memory leak
Monday, September 7, 2009
Core Data save hiba es NSError Array (1560) kiiratasa
UIImage betoltese bundle-bol
[UIImage imageWithContentsOfFile:
[[NSBundle mainBundle]
pathForResource:@"thefilename"
ofType:@"jpg"]];
Glyphysh - 120 icons for iPhone applications
UIImage trukkok
NSData *imageData = [[NSData alloc] initWithContentsOfFile:filePath];
UIImage *img = [[UIImage alloc] initWithData:imageData];
UIGraphicsBeginImageContext(CGSizeMake(75.0,75.0));
[img drawInRect:CGRectMake(0.0, 0.0, 75.0, 75.0)];
UIImage *newImage = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
NSData *thumbData = UIImageJPEGRepresentation(newImage, 0.5);
[thumbData writeToFile:thumbPath atomically:YES];
- Combine 2 UIImages
- Create a UIImage from a part of another UIImage
- Save UIImage to Photo Album
Thursday, September 3, 2009
UITableViewCell beszurasa UITableView-ba
[self.tableView insertRowsAtIndexPaths:myObject withRowAnimation:UITableViewRowAnimationFade];
[self.tableView scrollToRowAtIndexPath:[NSIndexPath indexPathForRow:0 inSection:0] atScrollPosition:UITableViewScrollPositionTop animated:YES];
Wednesday, September 2, 2009
Saturday, August 29, 2009
UIActivityIndicatorView
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.
Tuesday, August 25, 2009
Monday, August 24, 2009
Kepek leszedese iPhone-rol
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
- 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
Wednesday, August 12, 2009
thumbnail betoltese UITableViewCell-be
IBOutlet UIImageView *image;
...
@property (nonatomic, retain) IBOutlet UIImageView *image;
NSString *filePath = ...;
[[cell image] setImage:[[UIImage alloc] initWithContentsOfFile:filePath]];
Tuesday, August 11, 2009
Hova teszi a Simulator a kepeket es a thumbnaileket
Monday, August 10, 2009
Video lejatszasa iPhone-on
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
- 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.