This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 { |