Jump to content

52 posts in this topic

Recommended Posts

Hey future app dev! You want to make an app so follow this. This TuT will cover the very basics of app development, so we will be doing an app which has 3 buttons: Respring, Reboot and uicache and they'll do the actions stated by their names. We will also take the harder route, because it's more fun :p so we will do this 100% programmatically and in Obj-C. Also note that I heavily explain every little thing in this TuT so it's long.

 

REQUIREMENTS:

Theos

iOS 8 SDK

Power of reading

Ability to type in characters

This ancient template for Theos: https://iosddl.net/1b23c7c63c6e907f/application.nic.tar

Terminal

 

SETUP:

So now that you have your iOS 8 SDK downloaded, you want to make sure it'll be used. So move that fresh SDK into theos/sdks but it won't be used yet. To make it work, make a folder named Unused (or whatever you want) and put all the other SDKs in that folder. Then, move the new template to theos/templates. Now, we need to start the app. To do that open your terminal and type in "cd /path/where/you/want/the/app" and then type in theos. You'll see a bunch of templates so with those eyes of yours locate the new template (iphone/application). There should also be an iphone/application modern one but it doesn't work for me. After just follow the steps of the app. It should look like this:  IMG_6252.jpg

 

BACKGROUND:

Now you don't want that app to have a nasty background. Follow these steps to have a sexy one that'll be dynamic and resize to the screen. Results may be ugly or stuff if you use an image which is weirdly sized. I also suggest you to download images that are HD and free using this site: bla.bla.bla. Download the image file and move it to your/app/path/Resources. Basically, the ressources folder is where your app will get it's assets from. The assets could potentially be stores in other files but /Resources is the best one you can use. Rename the image to IamGay.jpg or anything you want (I'll use Background.png). Then, from the RootViewControlller.mm file delete the line where it says self.view.backgroundColor. That's basically a line in the template which will set the background of your app to nasty red. But now, the app doesn't have a background so you need to add one! Add these lines at the place where you deleted the other line:

Hidden Content

    UIGraphicsBeginImageContext(self.view.frame.size);

    [[UIImage imageNamed:@"Background.png"] drawInRect:self.view.bounds];

    UIImage *image = UIGraphicsGetImageFromCurrentImageContext();

    UIGraphicsEndImageContext();

     

    self.view.backgroundColor = [UIColor colorWithPatternImage:image];

Huh, what does that mean? It's basically making the image and setting the background to the image you declared. Also, make sure to replace Background.png with the actual name of the image. So now that everything is dandy and ready for action, we'll make a test build! So from the terminal, cd to the path of the project and type in make package. After that, look in the app's folder in packages and install the .deb and respring.

 

I also want to state, on iPad it will have the "stupid dev look" as I say. It basically will look like this but now worries, we'll fix that.

IMG_6254.png

CREATING BUTTONS:

So now we will start creating the actual action in the app rather than a plain background. We want to start in a text editor for the file RootViewController.mm, then slide your cursor to before the load view function ends (so basically where this "}" is). Return a lot of returns to make space for adding stuff and were all set. To declare the button we'll type this:

Hidden Content

    UIButton*springButton = [UIButton buttonWithType:UIButtonTypeRoundedRect];

Just for your knowledge, I'm making a respring button so that's why it's named springButton. You can obviously change the name to whatever you want so in the next steps be sure to change it if you changed it. This TuT is also 100% Obj-C and 0% XCode so why not explain what that does? Basically you're declaring springButton of type UIButton. Another example of declaration could be NSString *playerName = @"GayKid";. So we're declaring a string named playerName which contains GayKid. All good, next step. 

Hidden Content

    springButton.frame = CGRectMake(CGRectGetWidth(self.view.bounds)/4, 348.5, self.view.frame.size.width - 385, 65);

Eesh, that's a complex one, but I'll explain. What you see springButton.frame is basically telling the compiler we're using the frame from our button, which I named springButton. The rest is basically up to you but I'll explain how I made it work. So what I'm doing is using CGRectGetWidth(self.view.bounds) so it gets the width of the screen and I divide it in 4. That's my way of making an app dynamic as it will always get the screen width no matter what device and divide it by 4 to set our button there. The rest (so 348.5) is found by using FLEXible so that's why you need to compile a bunch of times and find the position you want to set your button to. Then, we have the sizing, so I'm using another way of calling the screen width and setting the height at 65. Here's a reference:

Hidden Content

    springButton.frame = CGRectMake(X axis position, Y axis position, X size, Y size);

Note that the button is not complete so it will probably give errors while compiling and not display the button. We're getting there though. Next step, set title, color and font size.

Hidden Content

    [springButton setTitle:@"Respring" forState:UIControlStateNormal];

    [springButton setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];

    springButton.titleLabel.font = [UIFont systemFontOfSize:46.0];

I won't explain these as much as the other steps because if you can read this text then you can probably figure out what it means. We're also using different methods to call things, but that's just for making you understand Obj-C can use different methods for calling stuff. Next step is making it do an action.

Hidden Content

    [springButton addTarget:self action:@selector(springUp)     forControlEvents:UIControlEventTouchUpInside];

    [self.view addSubview:springButton];

This also terminates the making of our button. The second line doesn't need to be explained but the first yes. What we're doing is basically making the button call a function which I named springUp when the button is touched/tapped. Now if you compile it'll be successful but you can open the app and see a nice crash when you tap the button, that's because we didn't make our function yet so it's calling absolutely nothing. After the first ending bracket "}" Which I told you to write all the steps before before the bracket, we'll go after it now. We want to make a new function so type this in:

Hidden Content

    - (void)springUp {

That's just making a void named springUp. I wanted the button to respring so I type this

Hidden Content

    system("killall -9 SpringBoard");

system runs a command and the command is killall -9 SpringBoard. Pretty self explanatory. The function isn't done yet! After that enter "}" so we'll end springUp. Compile,  install, open the app and hit the button and a respring occurs. Hooray! This is how we make a button. I'll be making three so just repeat the steps, change the title of the button, change the action of the button and it's position. I won't cover the other buttons because they're basically the same thing.

 

TEXT:

Nice app, but no one knows who did it! We'll make two text boxes saying "Made by a wandling tiger" and "For iOSGods.com". So start by regoing in your loadview function and add this 

Hidden Content

    UILabel *credLabel = [[UILabel alloc] initWithFrame:CGRectMake(21, CGRectGetHeight(self.view.bounds) - 60, self.view.frame.size.width - 42, 44)];

That makes a UILabel named credLabel and sets it's position to 21(X) and Screen's Height - 60 for Y. Now we'll add text to the label so to do this step you need to add this:

Hidden Content

    credLabel.text = @"Made by wandling tiger";

We're the text from credLabel to Made by a wandling tiger. Now we're going to color our stylish and ergonomic designed label so add this:

Hidden Content

    credLabel.backgroundColor = [UIColor clearColor];

    credLabel.textColor = [UIColor whiteColor];

The background color is set to clear so that makes no ugly background on the label and we're also setting our text color to white. Noice so now we just need to make it visible:

Hidden Content

    credLabel.textAlignment = UITextAlignmentCenter;

    [self.view addSubview:credLabel];

     

    [credLabel release]; 

This snippet also sets the text to a centered position rather than being on the left. After that we just make it visible.

 

 

CONCLUSION:

This TuT covered the very basics of app development. If you want to progress more in this domain I suggest you to search online, ask questions and learn Obj-C and Swift. I also open sourced all this project so if you want to see the whole code just download it from

Hidden Content

The final package will also be released in the tools section so if you want to try it you can. :) Here's a screenshot of my final product:

IMG_6253.pnG

 

Updated by ggAyMe
  • Like 55
  • Winner 7
  • Thanks 6
  • Agree 3
  • Informative 2
Link to comment
https://iosgods.com/topic/67772-how-to-make-a-simple-ios-app/
Share on other sites

  • Our picks

    • Otherworld Three Kingdoms Cheats v1.0.25 +4
      Modded/Hacked App: Otherworld Three Kingdoms By SuperPlanet corp.
      Bundle ID: com.superplanet.samworld
      iTunes Store Link: https://apps.apple.com/us/app/otherworld-three-kingdoms/id6496345383?uo=4


      Hack Features:
      - Multiply Attack
      - Multiply Defense
      - Instant Skills


      iOS Hack Download Link: https://iosgods.com/topic/183743-otherworld-three-kingdoms-cheats-v103-3/
      • 110 replies
    • Demon Hunter Idle Cheats v1.8.0 +3
      Modded/Hacked App: Demon Hunter Idle By MOBIRIX
      Bundle ID: com.mobirix.mbpdh
      iTunes Store Link: https://apps.apple.com/us/app/demon-hunter-idle/id6472879858?uo=4


      Hack Features:
      - Multiply Attack
      - Multiply Defense
      - Freeze Currencies*

      *NOTE: Do not abuse or buy ViP for just this cheat


      iOS Hack Download Link: https://iosgods.com/topic/183710-demon-hunter-idle-cheats-v102-3/
      • 152 replies
    • [ Last Cloudia TW ] 最後的克勞迪亞 Cheats v5.11.0 +5
      Modded/Hacked App: 最後的克勞迪亞 By Hong Kong Bao Chuan Software Technology Limited
      Bundle ID: com.boltrend.cloudia
      iTunes Store Link: https://apps.apple.com/tw/app/%E6%9C%80%E5%BE%8C%E7%9A%84%E5%85%8B%E5%8B%9E%E8%BF%AA%E4%BA%9E/id1530784975?uo=4



      Hack Features:
      - God Mode
      - Infinite MP
      - Infinite SP
      - Infinite Ether


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/topic/139142-last-cloudia-tw-%E6%9C%80%E5%BE%8C%E7%9A%84%E5%85%8B%E5%8B%9E%E8%BF%AA%E4%BA%9E-v161-jailed-cheats-4/


      iOS Hack Download Link: https://iosgods.com/topic/139140-last-cloudia-tw-%E6%9C%80%E5%BE%8C%E7%9A%84%E5%85%8B%E5%8B%9E%E8%BF%AA%E4%BA%9E-cheats-all-versions-4/
      • 387 replies
    • Rumble Heroes : Adventure RPG Cheats v2.2.035 +4
      Modded/Hacked App: Rumble Heroes : Adventure RPG By playhard Inc.,
      Bundle ID: com.playhardlab.heroes
      iTunes Store Link: https://apps.apple.com/us/app/rumble-heroes-adventure-rpg/id6443603223?uo=4


      Hack Features:
      - Multiply Attack
      - Multiply Defense
      - Always Drop x5 Loot
      - Freeze Currencies


      DO NOT BUY VIP FOR JUST THIS CHEAT. REMOVE ANY JB BYPASS FOR THE GAME


      iOS Hack Download Link: https://iosgods.com/topic/186304-rumble-heroes-adventure-rpg-cheats-v20091-4/
      • 76 replies
    • Gran Saga Idle:KNIGHTSxKNIGHTS Cheats v1.24.1 +2
      Modded/Hacked App: Gran Saga Idle:KNIGHTSxKNIGHTS By Kakao Games Corp.
      Bundle ID: com.piedpixels.gransagaidle
      iTunes Store Link: https://apps.apple.com/us/app/gran-saga-idle-knightsxknights/id6482985104?uo=4


      Hack Features:
      - Multiply Attack
      - Multiply Defense


      iOS Hack Download Link: https://iosgods.com/topic/182761-gran-saga-idleknightsxknights-cheats-v101-2/
      • 250 replies
    • LAST CLOUDIA Cheats v5.11.0 +5
      Modded/Hacked App: LAST CLOUDIA By AIDIS Inc.
      Bundle ID: com.aidis.lastcloudiaen
      iTunes Store Link: https://apps.apple.com/us/app/last-cloudia/id1473588527?uo=4


      Hack Features:
      - God Mode
      - Infinite MP
      - Infinite SP
      - Infinite Ether


      Non-Jailbroken & No Jailbreak required hack(s): https://iosgods.com/topic/147069-last-cloudia-v1160-jailed-cheats-1/


      iOS Hack Download Link: https://iosgods.com/topic/147068-last-cloudia-cheats-all-versions-1/
      • 462 replies
    • Plants vs. Zombies™ 2 v12.0.1 +4 Cheats [Unlimited Currencies]
      Modded/Hacked App: Plants vs. Zombies™ 2 By PopCap
      Bundle ID: com.popcap.ios.PvZ2
      iTunes Store Link: https://itunes.apple.com/us/app/plants-vs-zombies-2/id597986893
       

      Mod Requirements:
      - Non-Jailbroken/Jailed or Jailbroken iPhone/iPad/iPod Touch.
      - Cydia Impactor.
      - A Computer Running Windows/Mac/Linux.


      Hack Features:
      - Unlimited Coins
      - Unlimited Gems
      - Unlimited Mints
      • 3,628 replies
    • Bullet Force v1.102.6 +10 Cheats [Radar Hack]
      Modded/Hacked App: Bullet Force by Blayze Games, L.L.C.
      Bundle ID: com.blayzegames.iosfps
      iTunes Store Link: https://itunes.apple.com/us/app/bullet-force/id1009134067

      Mod Requirements:
      - Non-Jailbroken/Jailed or Jailbroken iPhone/iPad/iPod Touch.
      - Cydia Impactor.
      - A Computer Running Windows/Mac/Linux.


      Hack Features:
      - Radar Hack - Shows all enemies on the radar.
      - Instant Reload
      - Anti-Flash - Flashbangs have no effect.
      • 593 replies
    • Mighty Party: Heroes Clash v46.0.4 +4 Jailed Cheats [Unlimited Currencies]
      Modded/Hacked App: Mighty Party: Heroes Clash By Satege s.r.o.
      Bundle ID: com.panoramik.forgeofgodsblitz
      iTunes Store Link: https://itunes.apple.com/us/app/mighty-party-heroes-clash/id1163805393


      Mod Requirements:
      - Jailbroken or Non-Jailbroken iPhone/iPad/iPod Touch.
      - Cydia Impactor.
      - A Computer Running Windows/Mac/Linux.


      Hack Features:
      - Unlimited Currencies - Will not decrease.
      - Free Summoning
      - Complete All Quests
        • Haha
      • 795 replies
    • Mighty Party: Battle Heroes v46.0.4 +4 Cheats [Unlimited Currencies]
      Modded/Hacked App: Mighty Party: Heroes Clash By Satege s.r.o.
      Bundle ID: com.panoramik.forgeofgodsblitz
      iTunes Store Link: https://itunes.apple.com/us/app/mighty-party-heroes-clash/id1163805393


      Mod Requirements:
      - Jailbroken iPhone/iPad/iPod Touch.
      - iFile / Filza / iFunBox / iTools or any other file managers for iOS.
      - Cydia Substrate (from Cydia).
      - PreferenceLoader (from Cydia).


      Hack Features:
      - Unlimited Currencies - Will not decrease. Reason why I only added this was because there's always a ban wave on this game. I can hack currencies, yes but instant ban.
      - Free Summoning
      - Kill All / Auto Win - Linked. Wait till it's the enemies turn and before they spawn in a troop, enable this feature.
      - Complete All Quests
      • 1,825 replies
    • [FREE] Bullet Force v1.102.6 +10 Cheats [Shoot Through Walls]
      Modded/Hacked App: Bullet Force By Blayze Games, L.L.C.
      Bundle ID: com.blayzegames.iosfps
      iTunes Store Link: https://itunes.apple.com/us/app/bullet-force/id1009134067


      Mod Requirements:
      - Jailbroken iPhone/iPad/iPod Touch.
      - iFile / Filza / iFunBox / iTools or any other file managers for iOS.
      - Cydia Substrate (from Cydia).
      - PreferenceLoader (from Cydia).


      Hack Features:
      - Unlimited Ammo + Increased Fire Rate - Both are linked. I can't unlink them, sorry.
      - Shoot Through Walls - Doesn't work for all walls.
      - ESP - Shows enemies nametags through walls.
      - Radar Hack - Shows all enemies on the radar.
      - Unlock All Perks
      - Instant Reload
      - Anti-Flash - Flashbangs have no effect.
      - Unlimited Throwables - Will not decrease. Works online, kinda.
      • 3,729 replies
    • DRAGON BALL Z DOKKAN BATTLE Japan (ドラゴンボールZ ドッカンバトル) v5.25.0 +7 Cheats!
      Modded/Hacked App: ドラゴンボールZ ドッカンバトル By BANDAI NAMCO Entertainment Inc.
      Bundle ID: jp.co.bandainamcogames.BNGI0211
      iTunes Link: https://itunes.apple.com/jp/app/ドラゴンボールz-ドッカンバトル/id951627670


      Hack Features
      - Unlimited HP  -  (Put .0 at the back of your value: 1000.0)
      - Unlimited Damage  -  (Put .0 at the back of your value: 1000.0)
      - Unlimited Defense  -  (Put .0 at the back of your value: 1000.0)
      - Dice Hack -  [ONLY RANGE BETWEEN 1 - 6 or it will crash]  -  (Put .0 at the back of your value: 4.0)
      - Dice Hack 1, 2, 3
      - Dice Hack 4, 5, 6
      - Auto Win Battles -> Disable if you get errors.
      PUT .0 at the back of all values!
      • 7,910 replies
×
  • Create New...

Important Information

We would like to place cookies on your device to help make this website better. The website cannot give you the best user experience without cookies. You can accept or decline our cookies. You may also adjust your cookie settings. Privacy Policy - Guidelines