In my iPhone app I have a UIScrollView with custom content views. At some points, a custom popup view is dynamically added to the content with a zoom animation on appear and disappear. I'm using block-based animations with a completion handler that calls [self removeFromSuperView] as follows:
- (void)dismissPopup {
CGRect rect = sel...
Hello,
I'm using this code to query core data and return the value of key, I store the value like this :
NSString *newName= @"test";
[newShot setValue:newName forKey:@"shotNumber"];
and I query like this :
NSManagedObject *mo = [items objectAtIndex:0]; // assuming that array is not empty
NSString *value = [[mo valueForKey:@"...
Memory is an issue for iphone ipad app, especially for ipad, if one wants to do something big.
Well, these two snippets of codes can 1. get current available memory of the device; 2. force free memory.
Can we use it in the app? Will app store allow?
thanks
#import <mach/mach.h>
#import <mach/mach_host.h>
static void print_free_memo...
Hello all
iOs will give memory warning (level 1, 2, ...) for the apps.
Can I change the level criterial?
I mean for e.g., level 1 = 20 mb left, level 2 = 2 mb left.
I can tell iOs level 1 = 50 mb left?
thanks
...
Hi.
Here's the problem. I am using AVCaptureVideoDataOutput to get video frames from camera and make video from them with AVAssetWriter. Its working OK, but the video that I get is upside down because default orientation of device for my app is landscape left, not landscape right as its stated by default in AVCaptureVideoDataOutput. Im t...
Hi,
Im having some trouble passing an NSNumber object to different threads.
I call a function on viewDidload that loads up some objects from core data as a background process. which calls another function which loops through the loaded objects to see if there are any images associated with it alredy downloaded. if its not present, downlo...
Hello folks,
I've just started to sketch the features of an app containing a paint module. Such module will work like most painting apps, like Brushes or Colors; you'll have a brush, a pencil and a rubber, plus a numbers of colors.
I am wondering whether I should use OpenGL or CoreGraphics for the drawing routines. I am quite inexperienc...
In working on a feed-reading iPhone app which displays nsdata's (html and pdf) in a UIWebView. I am hitting a snag in some PDF validation logic. I have an NSData object which I know contains a file with .pdf extension. I would like to restrict invalid PDFs from getting any further. Here's my first attempt at validation code, which see...
I change the text of one of my buttons, I didn't realize that the text wasn't centered.
Its set in IB
How do I center it ?
...
I have a view controller and I am presenting it modal, as in...
UIViewController *myWindow = [[UIViewController alloc] init];
CGRect myFrame = CGRectMake(0.0f, 0.0f, 115.0f, 120.0f);
myWindow.view.frame = myFrame;
[self presentModalViewController:myWindow animated:YES];
is there any way I can present it not full screen in a specific ...
hi i have Core Data database with numerical attributes. they are NSNumbers. Default value is 0.0 but when i try to do some NSPredicated fetch, i get "'NSInvalidArgumentException', reason: 'Invalid predicate: nil RHS'" just because attribute value is 0.0
The predicate is created with:
[NSPredicate predicateWithFormat:@"(startValue => %...
Hi guys,
I really like the slideshow of application screenshots in application info in App Store. Does anyone have an idea how it is implemented? May be there are some tutorials or source code available? I could not find any.
May be not exactly the same, but something similar, where user can slide images in imageView would be very goo...
Is it possible to make a layer that wont be affected by transformations (scale, move) made to his parent?
if so, how?
For example,
if a have layer A,
I add a Layer named B as a child to layer A.
now i scale down layer A, how can i make layer B unaffected by this scale action?
so far i've found this property named honorParentTrasform, b...
I've been looking all over the 'net for information/examples...
I'm trying to change the line spacing of text inside a UITextView object to double spaced. I thought you could do it via Core Text, but haven't found a solution!
Any example code or information would be greatly appreciated! Thanks!
...
I have a UIScrollView which contains any number of thumbnails that should detect the touch event, perform 3D transformation on themselves and call a delegate method.
The one problem I am unable to overcome is detecting which sublayer is being tapped. I am setting layer.name to an index count and the subclass of the UIScrollView does get...
Hi,
I have an UIDatePicker that displays the date in an UITableViewCell.
I would like to define to the datePicker to change the date format in the UITableViewCell according to the device international settings.
How can I define it?
Thanks!
...
I want to monitor the HTTP traffic sent/received from my iPhone. The iphone is connected to the Internet via my wifi router.
I want to capture packets from my windows 7 station.
Thanks for your help.
...
I have a UIViewController added using addSubview hanging out on top of another UIViewController. I would like the added view to hang out below the screen to be called up with a nice animation when I need it.
Is there a way to add a subview to a screen at a certain location?
...
I have a view with a UITextField which is the first responder. I'm trying to add a semi-transparent view with an activity indicator that would cover everything.
Right now the code looks something like this:
CATransition *animation = [CATransition animation];
[animation setType:kCATransitionFade];
[self.window.layer addAnimation:animati...
my FirstViewcontroller has few plist properties that needs to pass to SecondViewController with its own plist properties. The "LastViewController" needs to take both plist properties from First and Second VC, together with user input to calculate the weight of a given item.
I am missing a link between First and Second VC.
didSelectRow...