Apple has introduced new software that will allow users to control their homes directly from mobile devices.

The iPhone maker also introduced a new health app that will enable users to store health and fitness data from different apps in a single place.

Speaking about the software updates at its annual developer's conference, WWDC, in San Francisco, CEO Tim Cook said: "This is a milestone year for this conference. It's our 25th year."

The iPhone and iPad maker introduced a new piece of software called HomeKit, which will allow developers to create apps that enable users to control different appliances and features around their home directly from an iPhone or iPad.

A feature like this had been rumoured in the run-up to the event, with the idea of the 'internet of things' - the concept that 'smart' objects around the home can be linked together - rapidly becoming popular. Samsung has previously admitted it believes this will be the biggest trend of the next 10 years.

The new health system, called HealthKit, comes with a supporting app, named Health, and is where users can view all of their various fitness statistics such as heart rate and distance covered.

Apple has been under pressure to move into the health sector more following rival Samsung's introduction of a dedicated wristband, the Gear Fit that syncs with an app on the owner's smartphone.

There had been rumours of Apple unveiling new hardware, however the Cupertino-based company instead focused on their software, and the desktop and mobile systems that run on their devices.

The company's desktop software, known as OS X and updated annually, has been given another overhaul and renamed OS X Yosemite, following the trend of being named after areas of California, where the company is based.

The design of the desktop software has been tweaked, including a new search bar that appears at the centre of the screen and uses sources on and offline to find documents as well as make internet searches.

Demonstrating the new software on-stage in San Francisco, Apple's Craig Federighi said: "Another year, time for another name. Yosemite has a great new interface, as well as a gorgeous new dock and beautiful icons. This all makes for a more usable OS X. The best ever.

"It's a wonderful new release and it's available to developers today. Everyone else will get it in the fall, and it will be free."

There had been talk in the run-up to WWDC of rapper Dr Dre making some sort of appearance, following the purchase of his headphone manufacturer Beats Electronics last week, and the crowd was not disappointed.

The rapper took a call from Mr Federighi, who was showing off a new feature that enables users to make phone calls from their desktop computer. Mr Federighi welcomed him to Apple following the acquisition of Beats for three billion dollars (£1.7 billion).

"I can't wait to work with the team at Apple", said Dre, before joking about attempting to beat Mr Cook to the office in the morning.

The software that runs on iPhone, known as iOS, was also updated and moved onto it's 8th version with some tweaks to the interface.

One of the key introductions in iOS 8 will be better acknowledgement of SMS text messages, following criticism that users struggled to switch from Apple's own iMessage service to SMS.

While it is not yet clear whether the new features completely remove that problem, SMS messages are now recognised on Mac desktops for the first time. Mr Federighi confirmed all the new software would be available to consumers "in the fall".

Mr Cook said of iOS 8: "This is a giant release - it's really two stories, not one: great user features, and incredible developer features."