Tuesday, July 21, 2009
Mark Johnson az iPhone memoriakezeleserol
Itt van a szajbaragos videoja es itt van egy halom olvasnivalo a temaban amit ajanl hozza.
Labels:
memory management
Friday, July 17, 2009
Hova ment UIImageWriteToSavedPhotosAlbum Simulator-ban
Hat ide:
yourhome/Library/Application Support/iPhone Simulator/User/Media/DCIM/100APPLE
Wednesday, July 15, 2009
Adatatvitel lite versionbol fizetosbe
Itt van egy leiras, hogy a Strip - Password Manager fejlesztoi hogyan oldottak ezt meg.
Labels:
data migration
UIView atmeretezes az IB-ben
Csak akkor lehet atmeretezni UIView-t az Interface Builder-ben a View Size tab-on (Tools/Size Inspector), ha a View Attributes tab-on (View/Attributes Inspector) az osszes Simulated Interface Element ki van kapcsolva. A 3-as SDK-tol a Status Bar default Gray-re van allitva None helyett es amig ezt nem allitjuk at None-ra, addig nem lehet atmeretezni a View-t.
Furcsa, hogy ha mindharom Simulated Interface Element-et kikapcsolom, akkor a Height marad 460 ugyanugy, mitha a Status Bar-t bellitom valamire, de ha mondjuk a Bottom Bar-nak beallitom a Tab Bar-t, akkor 460 frame-rol 431 frame-re ugrik ossze a View. Ez meg ertheto is lenne, ha a TabBar 29 frame magas lenne, de az 49 frame magas.
Az is fura, hogy ha a Bottom Bar-ra bellitom a Toolbar-t vagy Black Toolbar-t, akkor a View magassaga 436 frame lesz, de ha Translucent Black Toolbar-t valasztom akkor a View-t 480 frame magasra allitja be.
Labels:
IB,
Interface Builder,
resize,
Simulated Interface Element,
Status Bar,
UIView
Monday, July 13, 2009
Introduction to Property Lists
Property lists organize data into named values and lists of values using several object types...
Labels:
PList,
Property Lists
Memory Management Programming Guide for Cocoa
You should read this document to learn about the object ownership policies and related techniques for creating, copying, retaining, and disposing of objects in a reference-counted environment.
Labels:
cocoa,
memory management
ketujjas muveletek az iPhone Simulatorban
Option key (alt) - 2 "uj" a kozeppotra tukrozve mozog
Option key + Shift - egyutt mozog a 2 "uj"
Labels:
iPhone Simulator
Thursday, July 9, 2009
UITableView
A header file-ban meg kell adni, hogy a Controller implementalja a UITableViewDataSource protokolt:
@interface TestViewController: UIViewController <UITableViewDataSource> {}
implementalni pedig a numberOfRowsInSection-t kell ami meghatarozza, hogy hany cella lesz a TableView-ban, illetve a cellForRowAtIndexPath-ot, ami kitolti a cellat.
Ha le akarjuk kezelni a cellara kattintast, akkor a UITableViewDeleagate protokollt is be kell venni az interface-be es ebbol a didSelectRowAtIndexPath-ot kell implementalni.
Labels:
TableView,
UITableView,
XCode
Loggolas XCode-ban
Ahhoz, hogy lassuk amit logolunk be kell kapcsolni a Debugger Console-t.
NSLog
Logs an error message to the Apple System Log facility.
void NSLog (NSString *format, ... );
Discussion
Simply calls NSLogv
, passing it a variable number of arguments.
Availability
- Available in iPhone OS 2.0 and later.
format specifiers:
%@ Object
%d, %i signed int
%u unsigned int
%f float/double
%x, %X hexadecimal int
%o octal int
%zu size_t
%p pointer
%e float/double (in scientific notation)
%g float/double (as %f or %e, depending on value)
%s C string (bytes)
%S C string (unichar)
%.*s Pascal string (requires two arguments, pass pstr[0] as the first, pstr+1 as the second)
%c character
%C unichar
%lld long long
%llu unsigned long long
%Lf long double
XCode: Ugras a header file megfelelo reszere
Ha az implementation-bol akarunk a header file vonatkozo reszere ugrani, akkor a cmd-t nyomva kell duplan kattintani a kivant reszre.
Labels:
XCode
XCode-bol ugras a Documentation-be
Ha ax XCode-ban lenyomva tartjuk az alt gombot, akkor a kurzorbol egy kereszt lesz es ha igy duplan kattintunk valamire, akkor az felhozza a documentation vontakozo reszet.
Labels:
documentation,
help,
XCode
Subscribe to:
Posts (Atom)