Jump to content

31 posts in this topic

Recommended Posts

Posted (edited)

Hi everyone o/

 

I've been trying to make different tweaks lately and nothing has worked :( I'm pretty sure my code is correct it's just not 'latching' on to anything to make it work. My most recent attempt is making the homescreen rotate like it does on the iPhone 6 Plus. Here's my code from Tweak.xm and my .plist file:

 

.Plist:

[/url]  Filter      Bundles          com.apple.springboard
Tweak.xm:

%hook Springboard- (bool)homeScreenRotationStyleWantsUIKitRotation {  return (TRUE);  }- (bool)homeScreenSupportsRotation {  return (TRUE);  }- (long long)homeScreenRotationStyle {  return (2);  }%end
Thanks! Updated by BenJ
  • Replies 30
  • Created
  • Last Reply

Top Posters In This Topic

Posted (edited)

Hi everyone o/

 

I've been trying to make different tweaks lately and nothing has worked :( I'm pretty sure my code is correct it's just not 'latching' on to anything to make it work. My most recent attempt is making the homescreen rotate like it does on the iPhone 6 Plus. Here's my code from Tweak.xm and my .plist file:

 

.Plist:

<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">

<plist version="1.0">

<dict>

<key>Filter</key>

<dict>

<key>Bundles</key>

<array>

<string>com.apple.springboard</string>

</array>

</dict>

</dict>

</plist>

 

Tweak.xm:

%hook Springboard

 

- (bool)homeScreenRotationStyleWantsUIKitRotation {

return (TRUE);

}

 

- (bool)homeScreenSupportsRotation {

return (TRUE);

}

 

- (long long)homeScreenRotationStyle {

return (2);

}

 

%end

 

Thanks!

 

 

I don't think you're supposed to return anything with parenthesis around them.  Also use

[code][/code]

around what you paste into the topic so we can read it easier

Updated by Todeskuss
Posted (edited)

Don't put parentheses

 

return TRUE;

You're too slow :sanic:

 

EDIT: Oh wow, @@DiDA, sanic isn't an emoticon?? Cmon brah :3

Updated by Todeskuss
Posted

You're too slow :sanic:

 

EDIT: Oh wow, @@DiDA, sanic isn't an emoticon?? Cmon brah :3

It's evil

 

:evil:

Posted

Ok so I removed the parentheses and still no luck. But thanks for the help so far!

Posted

Ok so I removed the parentheses and still no luck. But thanks for the help so far!

Can you space your lines? Code isn't meant to be on one continuous line.  Hard and tedious to scroll through

Posted

Can you space your lines? Code isn't meant to be on one continuous line.  Hard and tedious to scroll through

In the actual code it is spaced evenly. For some reason it is showing up weird here.

Posted

Try now :)

 

 

Tweak.xm:
%hook Springboard

- (bool)homeScreenRotationStyleWantsUIKitRotation {
return TRUE;
}

- (bool)homeScreenSupportsRotation {
return TRUE;
}

- (long long)homeScreenRotationStyle {
return 2;
}
%end

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • 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