I'm working as an iOS application developer for the past 2 plus years. Now I would like to register my own developer account to iTunes for uploading my private apps.
individual developer accountand uploading my apps to the iTunes store, and at the same time I'm working in the previous company, then is it legal?
company developer account( developer account for companies, after company registration) and uploading my apps to the iTunes store, and at the same time I'm working in the previous company, then is it legal?
Its not illegal.
But most companies have clauses in their employment contract about it.
So a couple of steps you should do.
Most companies will be fine as long as its in your time and not competing, but best to check.
Just to add to what has already been said, I have always written it into my non-compete agreement with the company I was working for. If I started a project on the side just like you're suggesting I will talk to my company HR representative and add the new project to the non-compete agreement.
It'll depend solely on your employment contract with your main employer. Most employers will have a clause that prevents you working for another company in the same space (ie on a product that competes with them), but especially if you just want to publish some apps that you've been working on in your spare time you can always try to negotiate with them - or at least get them to acknowledge that specific apps are outside the non-compete clauses of your contract.