Hi,
I have an image in an UIScrollView, that can be scrolled and zoomed.
When the user presses a button, I want the code to create an image from whatever part of the UIScrollView is inside an area I specify with a CGRect.
I've seen code to crop UIImages, but I can't adapt it to do the same for a view, because it uses CGContextDrawImag...
When using the "Gather Leaked Memory Contents" of the Leaks Instrument, it seems to give me only the hex contents of an object, rather than showing me the ASCII string beside it (like every other hex dump in the world ever). Worse still, this box is un-selectable, I cannot even copy it into a decent hex editor for a string view.
Is ther...
Somehow the main .xib file for my iphone project got deleted. I created a replacement .xib file, but the properties are not setup correctly for the MainWindow to load this one. I don't understand and am hopelessly confused about any of the properties and which ones may or may not be sent.
What are the X properties that all need to be ...
Hi All,
Having a problem with NSURLConnection, if I create a NSURLConnection and call [connection connectionWithRequest] let it load a little then call [connection cancel] most of the time that works fine. However occasionally even after I call [connection cancel] the connection's delegate still gets called (which crashes the app). Goo...
Should I turn on "Generate Debug Symbols" in Xcode for release configuration? When it and "Link Time Optimization" are turned on Xcode show warning:
GenerateDSYMFile build/Release/cocoa_tutorial5.app.dSYM build/Release/cocoa_tutorial5.app/Contents/MacOS/cocoa_tutorial5
cd /Users/ariel/Documents/spacesimulator.net/cocoa_tutorial5
/Devel...
I created a view Called ProgrammaView that appears when a row of a table is clicked.
This view has a UILabel, a UIImageView and a UITextView.
Now.
ProgrammaView's Outlets have to be changed by the parameter passed to a method of the view called iniz.
in this
image there is first the ProgrammaView.h and then the method iniz.
The prob...
How to add a button to UINavigationBar programmatically?
...
Hi,
I'm trying to compile a project that uses the GData objective-c framework. I've successfully compiled and run the project under the 'Debug' configuration, but when I try to compile using 'Release' and now 'Adhoc' I get the following errors. NOTE: I duplicated the debug configuration for adhoc and that doesn't seem to help.
"_kGData...
Looking for the best way to set-up an iPhone project in XCode ... namely:
What is the preferred project template to start with (e.g View-Based or Windows-Based application)?
What folder structure should I create in XCode to manage the project? For example, under "Classes" is it a preferred practice to add Models, Views and Controllers...
I have multiple UITextViews with corresponding .txt files. I'm reading them with NSString's
stringWithContentsOfFile
but I don't know the path where I should put my files. If I put it to /tmp/ on my Mac, it works in Simulator, but, of course, doesn't work on the actual device. So where should I put the files, so they'll work on both Si...
I have four UINavigationControllers assigned each to a tab in a UITabBarController. Each UINavigationController manages a UIViewController, which may itself branch out into other UIViewControllers below it hierarchally.
My question is, in a case in which a user, under one tab, has navigated to a UIViewController that hierarchally BELOW ...
I've done an adhoc build to test an application, but when I drag it into iTunes to add to my devices it is getting a corrupt name. It comes up with the name
"Myapp Name <!DOCTYPE plist PUBLIC "-//APPLE//DTD PLIST 1.0//EN" http://www.apple.com/DTDs/PropertyList-1.0.dtd">" which continues with the whole plist
I've tried the obvious, cle...
I have a nib file that contains a window/view and an instance of NSObjectController. I programatically load the window in the nib setting "self" as owner.
"self" is my custom classs that defines an IBOutlet: an NSDictionary called settings. I now want to have that dictionary as content for the object controller. Is there a way to connec...
I have 3 "pages" (page 0, page 1, page 2) in a UIScrollView that are snapped to by finger swipes. There is a UIPageControl there too. The UIScrollView starts off presenting page 0. What I want to do is present page 3 FIRST sometimes. How can I do this programatically.
Simply setting currentPage (of UIPageControl) to the page number doe...
IET ANOTHER EDIT (to increase strangeness)
EDITED to show the relevant part of the code
Hi. There's a strange problem with an NSMutableArray which I'm just not understanding...
Explaining:
I have a NSMutableArray, defined as a property (nonatomic, retain), synthesized, and initialized with 29 elements.
realSectionNames = [[NSMutableA...
Hi,
I need to determine whether a selected UIColor (picked by the user) is dark or bright, so I can change the color of a line of text that sits on top of that color, for better readability.
Here's an example in Flash/Actionscript (with demo):
http://theflashblog.com/?p=173
Any thoughts?
Cheers,
Andre
UPDATE
Thanks to everyone's su...
Hi,
I'm trying to create a xcdatamodel for my applicationa and I wanted to know how I could design the schedule timing with the course...to be more clear, I'm going to allow users to enter the day of the week and the start time and end time their course is on. and users can add as many courses. Can someone provide me with the best solu...
I have a scroll view within which I am creating a graphic with CGContext commands. When it is first displayed everything is slightly larger than should be and fuzzy.
If I present another view on top of the graphic with presentModalViewController and dismiss it, the graphic corrects itself.
Any suggestions?
Thanks, John
...
My app has to load an image from a http server and displaying it into an UIImageView
How can i do that??
I tried this:
NSString *temp = [NSString alloc];
[temp stringwithString:@"http://192.168.1.2x0/pic/LC.jpg"]
temp=[(NSString *)CFURLCreateStringByAddingPercentEscapes(
nil,
(CFStringRef)temp,
NULL,
...
I have this code:
tableList = [[NSMutableArray alloc] initWithObjects:@"First View",@"Second View",nil];
I have synthesized it and set the property, the problem is when I add this line under the configure the cell comment to set the text of each row, the app opens in the simulator but instantly closes:
// Configure the cell.
cel...