There are three methods to establish WiFi connection on your printer
Method 1 : WPS
Press the WiFi on your printer for 5 seconds and it will go into pairing mode. Now within 1 minute, press the WPS button on your router for 1-3 seconds and your printer will be paired.
Method 2 : By connecting to Wireless network manually on your printer
For this you need to know your WiFi Network and password.
Follow the instructions in this video--> https://www.youtube.com/watch?v=xeARGVWU-t4
Method 3 : Using your Mac to setup WiFi on your printer
For this you need to download the Brother software.
Download the Brother printer software for your Mac from this website --> http://support.brother.com/g/b/downloadtop.aspx?c=us&lang=en&prod=hll2360dw_us
In the above website, click Mac for OS Family. Select your OS X version. Click Search button.
Click Full Driver & Software Package to download the printer software. Once the software is downloaded, open your Downloads and open the downloaded file. Now follow the onscreen instructions. When you get option to setup the printer through USB, LAN or Wireless choose Wireless or WiFi. Then follow the onscreen instructions to setup WiFi on your printer. This will allow you to save the WiFi configuration on to your printer directly from your Mac.
Once it is done, just restart your iPhone and iPad and also your printer. Then you will be able to print from your iPhone and iPad, and also from your Mac through WiFi.
If you have any difficulty on following the steps above, please let me know and I will continue to help you