Skip to content

Instantly share code, notes, and snippets.

View ipodishima's full-sized avatar

Marian Paul ipodishima

View GitHub Profile
@ipodishima
ipodishima / gist:2889861
Created June 7, 2012 16:24
iAddict Crash Winterboard
2 libsystem_c.dylib 0x365f6538 _sigtramp + 48
3 iAddictV2 0x0000002d + 0
4 Foundation 0x32024b68 _NSStandardizePathUsingCache + 32
5 Foundation 0x320269e8 -[NSString(NSPathUtilities) _stringByResolvingSymlinksInPathUsingCache:] + 116
6 WinterBoard.dylib 0x002de2af -[NSString(WinterBoard) wb$themedPath] + 179
7 WinterBoard.dylib 0x002daca7 _ZL26$CGImageReadCreateWithFileP8NSStringi + 139
8 ImageIO 0x34b2e542 CGImageSourceCreateWithFile + 258
@ipodishima
ipodishima / gist:3188708
Created July 27, 2012 15:34
Remove Shadow on web view
// From http://stackoverflow.com/questions/1074320/remove-uiwebview-shadow
- (void) removeShadowForWebView:(UIWebView*)webV
{
// remove the shadow
if ([[webV subviews] count] > 0)
{
for (UIView* shadowView in [[[webV subviews] objectAtIndex:0] subviews])
{
if ([shadowView isKindOfClass:[UIImageView class]]) {
[shadowView setHidden:YES];
@ipodishima
ipodishima / gist:3710494
Created September 12, 2012 22:36
Les petites macros qui m'ont sauvés la vie pour l'iPhone 5
// L'iPhone 5 est sorti ce soir, avec son écran 4", de 1136 px de haut.
// L'astuce du jour trouvée sur les forums dev : pour espérer faire disparaitre les bandes noires de votre app, il faut ajouter un nouveau fichier nommé [email protected] faisant 960x1136 px.
// Bon ensuite, reste le problème de proportions si vous avez hardcodé vos valeurs d'écran (480 ou 460 ou 416 qui traînent) c'est perdu :D
// Alors au cas où voici quelques macros que vous mettrez dans vos prochains projets, et qui me sont très pratiques ! La preuve aujourd'hui, les seuls ajustements que j'ai à faire dans mes apps sont le remplacement d'images trop courtes sur pattes !
// PPToolbarHeight et PPTabbarHeight sont hardcodés eux par contre.
// Il y a peut-être d'autres solutions, celle-ci est celle que j'utilise de longue date car je hais les valeurs hardcodées.
// Ah, et d'ailleurs, vous pouvez les retrouver en utilisation dans https://github.com/ipup/PPRevealSideViewController/ :D
// Tiens compte de la rotation de l'écran
CGRect PPSc
@ipodishima
ipodishima / gist:3953339
Created October 25, 2012 15:28
Enqueue notification when run loop is idle
NSNotification *idleNotif = [NSNotification notificationWithName:NotificationCleanUpOnIdle object:nil];
[[NSNotificationQueue defaultQueue] enqueueNotification:idleNotif postingStyle:NSPostWhenIdle];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(onSystemIdle:) name:NotificationCleanUpOnIdle object:nil];
// ....
- (void) onSystemIdle:(NSNotification*)notification
{
@ipodishima
ipodishima / Collapsible.swift
Last active May 8, 2025 05:54 — forked from sanzaru/Collapsible.swift
SwiftUI collapsible view
import SwiftUI
struct Collapsible<Content: View>: View {
@State var label: () -> Text
@State var content: () -> Content
@State private var collapsed: Bool = true
var body: some View {
VStack {