20.04.2013 Views

Tutorial pratici per iPhone SDK v1.6 - Get a Free Blog

Tutorial pratici per iPhone SDK v1.6 - Get a Free Blog

Tutorial pratici per iPhone SDK v1.6 - Get a Free Blog

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Il procedimento non è difficile, <strong>per</strong>ò merita attenzione <strong>per</strong> non <strong>per</strong>dere nessun passaggio. Iniziamo<br />

creando un file xib vuoto (“File” -> “New File…” -> “Empty XIB”) e chiamiamolo “cellaTweet”.<br />

Facciamo doppio clic sul file appena creato <strong>per</strong> aprirlo in IB.<br />

Inseriamo all’interno della vista un componente di tipo “UITableViewCell”:<br />

Facciamo doppio clic sul componente che abbiamo appena inserito, si aprirà questa piccola vista:<br />

Questa è la base della nostra cella <strong>per</strong>sonalizzata. Fra poco inseriremo i componenti che conterranno<br />

poi le informazioni che desideriamo (che saranno, ovviamente, quelle che abbiamo<br />

fatto salvare nella prima parte del tutorial, quindi nome utente, testo del tweet e immagine dell’utente).<br />

Prima di fare ciò, andiamo nel “Size Inspector” e modifichiamo l’altezza a 70 (lo stesso<br />

valore che abbiamo impostato prima nella tabella, ricordate?):<br />

<strong>Tutorial</strong> <strong>pratici</strong> <strong>per</strong> <strong>iPhone</strong> <strong>SDK</strong>! 146

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!