I have multiple editable textfiels and some of them are covered with keyboard. So I used UIScrollView and it works quite nice.
Problem is when I want to hide keyboard. If I was scrolled down, after the keyboard hides, everything jumps up as it was at beginning (without keyboard). I want to tween this part as the keyboard is hiding.
So f...
This should be so simple, and yet, it is evading me: When stopped at a breakpoint in the Xcode/gdb debugger, I wish to find the current refcount of an object derived from NSObject. How can I do this? I can't seem to find a way, and it is driving me mad.
...
Hi all,
I'm trying to wrap my head around the OpenGL object model on iPhone OS. I'm currently rendering into a few different UIViews (build on CAEAGLayers) on the screen. I currently have each of these as using separate EAGLContext, each of which has a color renderbuffer and a framebuffer.
I'm rendering similar things in them, and I'd l...
up to this point, i had not found a solution that would work well to extract text from a pdf in objective c for use on the iphone. i found some standard c code and modified it to work, and thought i would provide it here, as up to this point i have used stackoverflow quite a bit but never gave back. you can get it here:
http://dl.dropbox...
I have defined an enum in a header file of a class :
typedef enum{
RED = 0,
BLUE,
Green
} Colors;
- (void) switchTest:(Colors)testColor;
and in the implementation file I have :
- (void) switchTest:(Colors)testColor{
if(testColor == RED){
NSLog(@"Red selected");
}
switch(testColor){
case RED:
NSLog(@"Red...
I need to get some kind of scaling factor which tells me by how much the map has zoomed (whenever the region changes).
My first idea was to use the span's delta latitude or longitude values. I would keep a track of the 'old' value and then update the value when the map region changes and compare the ratio with the old value.
I'm using...
I'm making a core-data application that is view based. I can create the managedObjectContext and 'use' it in the app delegate, but can not pass it to the mainviewcontroller. Probably something simple, but I can't find the problem after looking for quite a while. The managedObjectModel is nil in the mainviewcontroller.
The log and e...
Are there are any libraries that are available for visualizing graphs for iphone sdk? Something like this. There is no need for any animation. Simple laying out of graph is fine. Any pointers are appreciated!
...
In my root view controller, in my didReceiveMemoryWarning method, I go through a couple data structures (which I keep in a global singleton called DataManager), and ditch the heaviest things I've got--one or maybe two images associated with possibly twenty or thirty or more data records.
Right now I'm going through and setting those to ...
I want to retrieve a single value (String) from "Entry." I believe I am missing something. Can someone point it out?
XYZAppDelegate *appDelegate = [[UIApplication sharedApplication] delegate];
NSManagedObjectContext *managedObjectContext = appDelegate.managedObjectContext;
NSFetchRequest *request = [[NSFetchRequest alloc] init];
NSPre...
Hi, my problem is that I can't access my NSMutableArray in - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {}.
I create my NSMutableArray here:
nodes = [xmlDoc nodesForXPath:@"/xml/items/item/short_desc" error:nil];
if (nodes != nil && [nodes count] >= 1) {
for (int i = 0; i <...
Hello,
I have a scroll view; inside I add one or more text views; to each text view I add a button:
UIScrollView
UITexView
UIButton
UITextView
UIButton
...
This is part of the code:
- (void)viewDidLoad {
...
[self loadUI];
...
}
-(void) loadUI {
UITextView *textView;
...
for (...) {
...
I'm applying a scale transform to a UIView that draws a number. (The number is literally being drawn with drawInRect; no UILabel in sight.) The scale transform makes the view smaller by quite a bit...say, 80% smaller.
The resulting number looks a little "chunky". Is there a way that I can keep my text looking nice and anti-aliased, the ...
Hi,
I have a UITableViewController with a table view that works perfectly when in portrait mode.
the problem is when IO rotate the phone the tableView won't scroll all the way through it keeps bouncing back. (have switched bounce scrolling off) I suspect the tableview size is not correct but I can't fibure out why this works for multip...
Hi,
I am working on a simple iPad game and wondering whether I should be using different graphics for portrait vs landscape or just doing some kind of transform between them?
Thanks for any tips/advice
Chris
...
I want to detect whether passing a NSString to NSLog will return (null). I've tried
if (string == @"") {do something}" and if (string == @"(null)") {do something}" but neither seem to work. Any advice would be greatly appreciated!
...
We want to build a webpage that requests permissions from an iphone user to change their default search provider. Is this possible with through mobile safari?
...
I have a callout which displays details of a point using a custom view, how can I prevent my mapview from being reloaded when I navigate back to it using the standard navigationcontroller ui devices?
...
Situation: I'm placing an instance of a system "item action" button into the right navigation button slot... no problems there. However, I want that button to display as just the icon WITHOUT a border around it (ie: "plain" style). Reading over documentation, it sounds like this should be a simple matter of just setting the UIBarButtonIt...
I´m looking forward to launch a mobile application for Android, iPhone and maybe other platforms like Blackberry, Symbian, ... too in the future.
What do you think is the best way to promote this application?
Is setting up a website; provide a screencast with the features; running ads on ad networks enough or are there other ways too ? W...