ciao a tutti, ho già realizzato un app per iphone, e adesso mi sto avventurando in un nuovo progetto per la comunità. essendo un po alle prime armi, cercavo qualcuno che mi possa dare una mano, naturalmente condividendo i futuri proventi delle vendite… e magari anche con un account su developer… grazie a tutti
e in che cosa ti dovrebbe dare una mano?
è una sorta di applicazione per realizzare, modificare backup della rubbrica, dei messaggi… una specie di pcsuite… in wifi…
si ma dico a sviluppare proprio l’app?
si… darmi una mano… ho iniziato oggi…
guarda io vorrei tanto darti una mano anche xche mi piacerebbe ma nn so proprio da dove iniziare!!!
ok… grazie lo stesso… beh se conosci qualcuno che potrebbe darmi una mano gli potresti far vedere il post?? io non riesco a darne fuori con questi protocolli… grazie mille
ok dai!!!
Se lavori con rubrica e messaggi non potrai pubblicare su appstore, ti consiglio di leggere le limitazioni del developer program prima di registrarti: iPhone Developer Program - Apple Developer Connection
per il wifi è facile…basta che sai usare le socket e ti scrivi un server a parte sul computer e poi fai quello che ti pare
si lo so che non posso pubblicare su appstore… infatti penso andrà sulla comunità… ma tu sei capace?? mi potresti mandare qlkosa??
se sei capace puoi dare un occhio a qst codice allora??? io nn capisco perchè non funzia…
parte client:
-(IBAction)getAddress
{
NSData * dataToWrite = [ writeDat.text dataUsingEncoding: NSASCIIStringEncoding];
/*NSSocketPort *sockPort;
sockPort = [[NSSocketPort alloc]
initRemoteWithTCPPort:21 host:Textip.text];
int sockFD = [sockPort socket];*/
NSFileHandle *clientSocket;
clientSocket = [[NSFileHandle alloc]
initWithFileDescriptor:21];
NSNotificationCenter *nc;
nc = [NSNotificationCenter defaultCenter];
[nc addObserver:self
selector:@selector(processServerData<img src="http://www.xcodeitalia.org/forum/images/smilies/Black/big_smile.png" style="vertical-align: middle;" border="0" alt="Smile" title="Smile" />
name: NSFileHandleReadCompletionNotification
object: clientSocket];
[clientSocket writeData:dataToWrite];
[clientSocket readInBackgroundAndNotify];
labelIp.text = @" client avviato";
}
/*
- This method is invoked in response to
- NSFileHandleReadCompletionNotification
*/
-
(void) processServerData:(NSNotification *)note
{
NSData *data = [[note userInfo]
objectForKey:NSFileHandleNotificationDataItem];// Do something here with your data
// Tell file handle to continue waiting for data
[[note object] readInBackgroundAndNotify];
}
parte server:
-(IBAction)avviaServer:(id)sender
{
NSSocketPort *sockPort;
sockPort = [[NSSocketPort alloc] initWithTCPPort:21];
int socketFD = [sockPort socket];
NSFileHandle *listeningSocket;
listeningSocket = [[NSFileHandle alloc]
initWithFileDescriptor:socketFD];
NSNotificationCenter *nc;
nc = [NSNotificationCenter defaultCenter];
[nc addObserver:self
selector:@selector(spawnChildConnection<img src="http://www.xcodeitalia.org/forum/images/smilies/Black/big_smile.png" style="vertical-align: middle;" border="0" alt="Smile" title="Smile" />
name:NSFileHandleConnectionAcceptedNotification
object:listeningSocket];
[listeningSocket acceptConnectionInBackgroundAndNotify];
[lblstato setStringValue<img src="http://www.xcodeitalia.org/forum/images/smilies/Black/anger.png" style="vertical-align: middle;" border="0" alt="Angry" title="Angry" />"server avviato"];
}
/*
- This method is invoked in response to
- NSFileHandleConnectionAcceptedNotification
*/
-
(void)spawnChildConnection:(NSNotification *)note
{NSData * ackData = [ [txtStringa stringValue] dataUsingEncoding:NSASCIIStringEncoding];
NSFileHandle *connectedSocket = [[note userInfo]
objectForKey:NSFileHandleNotificationFileHandleItem];NSNotificationCenter *nc;
nc = [NSNotificationCenter defaultCenter];[nc addObserver:self
selector:@selector(processClientData<img src=“http://www.xcodeitalia.org/forum/images/smilies/Black/big_smile.png” style=“vertical-align: middle;” border=“0” alt=“Smile” title=“Smile” />
name:NSFileHandleReadCompletionNotification
object:connectedSocket];// Send a message to the client, acknowledging that the connection was accepted
[connectedSocket writeData:ackData];[connectedSocket readInBackgroundAndNotify];
}
/*
- This method is invoked in response to
- NSFileHandleReadCompletionNotification
*/
-
(void)processClientData:(NSNotification *)note
{NSData data = [[note userInfo]
objectForKey:NSFileHandleNotificationDataItem];
NSString aStr;
aStr = [[NSString alloc] initWithData:data encoding:NSASCIIStringEncoding];
// Do something here with your data
txtIp = aStr;
// Tell file handle to continue waiting for data
[[note object] readInBackgroundAndNotify];
}
thanks!!
cerco collaboratori
ciao ragazzi, circa un mese fa ho pubblicato sulla mia repo un applicazione, si chiama IOre
ora sto preparando la seconda versione, che andrà pubblicata su appstore, ma sto riscontrando alcuni problemi, cerco qualcuno che sia disposto a collaborare cn me.
qui potete vedere il mio blog
iApp Code - Tutto quello che serve per programmare per Iphone…
inoltre ho anche nuovi progetti che mi piacerebbe iniziare