Skip to content
Guest Big Announcement

Help with Coding a Tweak

Featured Replies

  • Author

Try now :)

Tweak.xm:
%hook Springboard

- (bool)homeScreenRotationStyleWantsUIKitRotation {
return TRUE;
}

- (bool)homeScreenSupportsRotation {
return TRUE;
}

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

Thanks, but still isn't working. Now I really am not sure why.

  • Replies 30
  • Views 5.3k
  • Created
  • Last Reply

Top Posters In This Topic

Tell me error so we can see which line is it

Fixed :)

 

%hook Springboard

-(bool)homeScreenRotationStyleWantsUIKitRotation {
return TRUE;
}

-(bool)homeScreenSupportsRotation {
return TRUE;
}

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

Tell me error so we can see which line is it Fixed :)

%hook Springboard

-(bool)homeScreenRotationStyleWantsUIKitRotation {
return TRUE;
}

-(bool)homeScreenSupportsRotation {
return TRUE;
}

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

It compiles fine and everything checks out, it just doesnt work. And nope, still not working.

  • Author

did you type it right? and class

Yep.

Maybe you using wrongdoing hook?use "Make Package" not "make"

When making to deb

Tried that too and it still doesn't work.
  • Author

Tell me error so we can see which line is it Fixed :)

%hook Springboard-(bool)homeScreenRotationStyleWantsUIKitRotation {return TRUE;}-(bool)homeScreenSupportsRotation {return TRUE;}-(long long)homeScreenRotationStyle {return 2;}%end
Now I'm getting some errors:

 

Preprocessing Tweak.xm...

Compiling Tweak.xm...

Tweak.xm:4:424: error: unknown type name 'LONG'

...SEL); static LONG LONG (*_logos_orig$_ungrouped$Spring...

^

Tweak.xm:4:436: error: use of undeclared identifier

'_logos_orig$_ungrouped$Springboard$homeScreenRotationStyle';

did you mean

'_logos_orig$_ungrouped$Springboard$homeScreenSupportsRotation'?

..._logos_orig$_ungrouped$Springboard$homeScreenRotationStyle)(S...

^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

_logos_orig$_ungrouped$Springboard$homeScreenSupportsRotation

Tweak.xm:4:238: note:

'_logos_orig$_ungrouped$Springboard$homeScreenSupportsRotation'

declared here

...SEL); static BOOL (*_logos_orig$_ungrouped$Springboard...

^

Tweak.xm:4:495: error: expected ';' after top level declarator

...(Springboard*, SEL); static LONG LONG _logos_method$_u...

^

;

Tweak.xm:4:523: error: unknown type name 'LONG'

...SEL); static LONG LONG _logos_method$_ungrouped$Spring...

^

Tweak.xm:4:532: error: expected ';' after top level declarator

...SEL); static LONG LONG _logos_method$_ungrouped$Spring...

^

;

Tweak.xm:10:8: error: unknown type name 'LONG'

static LONG LONG _logos_method$_ungrouped$Springboard$...

^

Tweak.xm:10:17: error: expected ';' after top level declarator

static LONG LONG _logos_method$_ungrouped$Springboard$...

^

;

7 errors generated.

make[2]: *** [obj/Tweak.xm.bb066255.o] Error 1

make[1]: *** [internal-library-all_] Error 2

make: *** [Roatator.all.tweak.variables] Error 2

Benjamin-Schmitts-iPhone:~/roatator m

 

 

  • Author

Is your bundle id correct?

I am trying to add a Springboard tweak to I believe so. I used: com.apple.springboard

Ehh in an old tutorial here (Objective-C + Logos) you'll find exactly what you want.

 

 

 

%hook SpringBoard
- (BOOL)homeScreenRotationStyleWantsUIKitRotation {     return true;
}

- (BOOL)homeScreenSupportsRotation {     
return true;
}%end

%hook SBIconLabelImageParameters {	 
- (id)text {     
%orig;
return;
}%end

Create an account or sign in to comment

Featured Content

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.