For this you will need to have theos installed, ifile and mobile terminal installed.
You will also need to have your header files installed as these will be placed in /var/theos/include.
STEP BY STEP
1) Open mobile terminal and login as root.
su
alpine (this is the default password but if you have changed the password use that instead)
2) Run your theos shortcut which is $THEOS/bin/nic.pl
3) Choose 5 as this will be a tweak that we are creating.
4) Fill in the name and the author and keep hitting return until it's done.
5) Go into ifile and go to /var/mobile and find your tweak name. for example mine will be called "welcome"
6) So when creating a tweak we do not edit any file except for the makefile and your tweak.xm file.
In your tweak.xm delete everything file add this code.
#import <UIKit/UIKit.h> #import <Foundation/Foundation.h> #import <SpringBoard/SpringBoard.h> %hook SpringBoard -(void)applicationDidFinishLaunching:(id)application{ %orig; UIAlertView *alert = [[uIAlertView alloc] initWithTitle:@"Hello User" message:@"Welcome Stranger" delegate:self cancelButtonTitle:@"OK thanks for the UIAlert!" otherButtonTitles:nil]; [alert show]; [alert release]; } %end First we are importing header files.
The %hook Springboard will hook our tweak to the springboard.
The void section means that we are declaring a method and the method here is what happens when your phone resprings so whatever code we write, the code will run one that method has been preformed.
The %orig; keeps the original method as the original method is to launch your springboard so if we don't use the original method the phone will be trying to use the code that we have wrote and this could lead to a bootloop.
The code that we are running is a UIAlertview which is a little popup view.
the %end is obvious.
Now save this and go to your makefile and add these two lines of code at the top:
ARCHS = armv7 arm64 SDK = iPhoneOS8.3
(if you are using a older sdk then write that in instead of 8.3)
then add this line of code in tweak_FRAMEWORKS = UIKit
after that save this and go into mobile terminal.
now type in this command " cd /var/mobile/tweakname"
type "make package install" and your device will respring and once one you will see a UIAlertView
Congrats you just developed your own tweak and you are now a developer
-----------------
To create tweaks you MUST know a lot about objective c. People ask me how do I learn.
If you are a new coder then learn something easy like html and css and once you know this then you can learn objective c.
to learn html and css use codecademy.com
-------------
To learn objective c
Download the theos tutorials app from cydia and learn from here (THIS IS A MUST)
take the treehouse course
learn from codeschool
look at open source projects
and ask other devs with any questions you have as you will learn a lot.
it takes time so don't worry if you don't understand at first and hope this helped guys
Happy coding