Hi there. I am not trying to draw on a component I am simply trying to create a new context (I think) and spit out a UIImage with the contents of my drawing on it. I'm not trying to draw on any existing component. I am using the following code:
CGColorSpaceRef colorSpace = CGColorSpaceCreateDeviceRGB();
CGContextRef context = CGBitmapC...
My app has a navigation controller and two views, firstController and secondController.
firstController has a webView that displays an html page with links, and clicking any link will take the user to secondController. This is where the program stops by stepping through the debugger.
See code below.
- (BOOL)webView:(UIWebView *)webView...
I need to create NSManagedObject instances, do some stuff with them and then trash them or store to sqlite db. The problem is, I cannot create instances of NSManagedObject unconnected to MSManagedObjectContext and this means I have to clear up somehow after I decide that I don't need some of the objects in my db.
To deal with it, I ha...
Hi there,
I want to ask whether it is possible to resize the accessory buttons of a UITableViewCell. Also I want to resize the buttons in edit mode. For example in normal mode, I want a bigger detail disclosure button, and in edit mode I want a bigger delete button and bigger red minus button. I have this issue because I want to use it ...
hi,
SUPER HARD QUESTION
Here is my projet:
I use 3000 jpegs in an iPhone Project. In a normal situation, the 3000 files are loaded in the 'NSBundle' (encapsulated with the App) and then load on the iPhone. The problem is the app is around 500 Mo.
So i'd like to copy the images in a different directory ('Documents' for example) t...
Hi all,
I have a looping scrollView but I want the user to be able to speed up the scrolling by interacting with the scrollView (ie scrolling with their finger) if they choose. Do I have to do extra work to acheive this as at the moment the animated scrolling takes priority over the users interaction and slows the scroll down dramatical...
ref1view.hidden = NO;
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration:0.25f];
[ref1view setAlpha:([ref1view alpha] == 1) ? 0.0f : 1.0f];
[UIView commitAnimations];
Can anyone please give me a breakdown of how this works.. Specifically the:
[ref1view setAlpha:([ref1view alpha] == 1) ? 0.0f : 1.0f];
It ...
For a site I'm working on I'm implementing image preloading with javascript however i most certainly do not want to call my preload_images() function if someone is on slow bandwidth.
For my market the only people with slow bandwidth are those using mobile internet on a smartphone.
What's the best approach for detecting these users so i...
According to URL Loading System Programming Guide NSConnection sample code I can release connection in connectionDidFailWithError and connectionDidFinishLoading.
However, releasing connection in connectionDidFinishLoading causing
objc[19685]: FREED(id): message releaseDelegate sent to freed object=0x3b41630
Program received signal: ...
Hi,
I have used MKReverseGeocoder from iPhone sdk for my application without using mapview of iphone sdk,but my application has map view which i am getting from google api passing Address.
But in order to get address i am doing as follows :
Current location(Latitude/Longitude) with CLLocation library
MKReversegeocoder API of iphone s...
Hi
So following this SO question Here, i created two new sets of files:
JCScrollViewController.m
JCScrollViewController.xib
JCKeyboard.xib
In JCScrollViewController.xib i have just a scroll view, with the scrollView outlet of the .m file connected to it, the view outlet is connected to the View. The JCScrollViewController.m confor...
how to connecting with facebook in iphone or I need all benifit of facebook in iphone
I try code but I Get only login to face book & logout from facebook
AND
if some one help me to get API Test Console from face book I can done this facebook connection to iphone please help me out
...
I have an opengl game for iPhone/iPad (universal). I added the ability to send an SMS message using MFMessageComposeViewController. Testing in a real iPhone. The SMS composer sheet animates up over my view, I can send the message or not, didFinishWithResult gets called, and when I [self dismissModalViewControllerAnimated:YES] it goes aw...
I am trying to pass a managedObject from a mapView with multiple annotation to a mapDetailView with only one annotation of the managedObject passed. This works great in a tableView to mapDetaiView. Any help would be appreciated. My code ...
- (void)viewDidLoad {
[super viewDidLoad];
if (self.managedObjectContext == nil) {
self.man...
I'm using a UIPickerview to 'collect ' several parameters using two components. Once the parameter type (component0) and a value (component1) are reached the user can select them by hitting an accept Button and moving on to the next parameter. I want to change the color of a UIPickerview row when the values have been selected and I want ...
Let's say I have an object named "foo" with another object named "bar" as property.
When "foo" deallocates, will it automatically remove all references to "bar" so that "bar" deallocates as well? or will "foo" deallocate and "bar" float in memory somewhere? even if all of "bar"'s references are defined in "foo".
thanks in advance.
...
Hello!
I'm trying to write a simple PDF viewer using CGPDFDocument, based on QuartzDemo.
There is common rendering:
-(void)drawInContext:(CGContextRef)context
{
// PDF page drawing expects a Lower-Left coordinate system,
// so we flip the coordinate system before we start drawing.
CGContextTranslateCTM(context, 0.0, self...
I am working with a UITableViewController. The method that fails is:
- (void) testLoc {
self.dictionary = [self.delegate getLocationsWithLatitude:@"0.0" longitude:@"0.0"]; //HERE
[self setUpTableArray:dictionary];
}
Test results have shown that the exception is thrown in the first line of testLoc.
- (NSDictionary *) getLoc...
Hi Friends,
Can we build an Application using UIWebView that will entirely mimic the Safari Browser?
Are there any cases where UIWebview can not do what that can be done in Safari?
...
If I have a webkit view loaded in my Android or iPhone app, can I pass data back and forth from the page in webkit?
For example, can I pull an html view down from the web and populate a form in that view with data stored on my device?
...