has anyone used a uitableview to write a uitextview-like interface where I would be able to use multiple fonts?
How would I arrange the table and responder?
Hi,
I have a list of about 5 items in a tableview which I bought them from a database and now when i am trying to push each of them into different views in DidSelectRow() what I am seeing is it is showing me all the views in all the categories.... here is the code I have written....
Here is the code written in cell for row at indexpath:
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
static NSString *CellIdentifier = @"Cell";
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
if (cell == nil) {
cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier] autorelease];
}
BeautyQuotes *bQuote = (BeautyQuotes*)[mBeautyQ objectAtIndex:indexPath.row];
cell.textLabel.text = bQuote.qBeauty;
[cell setAccessoryType:UITableViewCellAccessoryDisclosureIndicator] ;
return cell;
and in didselectrow() i have written this code:
id count1 = [mBeautyQ count];
while (count1--) {
object = [mBeautyQ objectAtIndex:count1];
}
[mBeautyQ release];
if([[object objectAtIndex:indexPath.row] isEqual : @"Beauty Quotes"]){
[tableView deselectRowAtIndexPath:indexPath animated:NO];
BeautysubViewController *subBeauty = [[BeautysubViewController alloc] initWithNibName:@"BeautysubViewController" bundle:nil];
//subBeauty.selected =[regions objectAtIndex:indexPath.row];(this is not working)
[subBeauty setTitle:@"Beauty Quotes"];
NSLog(@"it is about push beauty subview controller");
[self.navigationController pushViewController:subBeauty animated:YES];
[subBeauty release];
}
in this way i am pusing all the rows in to different views....but when I am pushing this into beautyquotes it is showing me all other views along with this....
struggling on this a lot please help me in dealing with this....
I've got an internationalized iPhone project. In the various ${lang}.lproj/InfoPlist.strings files I've got a single key, CFBundleName = "My App Name".
That's working fine for a single target, but I can't make it work for multiple targets.
I'd like to have several translated InfoPlistMyApp.strings files for the main target, plus several InfoPlistMyApp*Lite*.strings files for the lite version. But I can't figure out how to set it up. The InfoPlist.strings name seems to be set in stone, so I can't replace it dynamically.
Any ideas?
Hi,
I have preperd a remote service, i would like to know if it's possible somehow via this service to call another activities?
coz usually what ive seen so far, is how external apps calling the remote service and using it's methods, but i want vice versa.. that the remote service will call an external app's activity,
thanks,
moshik.
Hi, I manage to localized app icon and app name for different languages.I found the icon changes depending on the language setting on the iphone only when the first time when you install the app from xcode.
after that, if i change the language setting, the app icon stay the same but only the app name changes to the localized one.
Anyone has an idea is there is way of solving the problem? it seems iphone doens't refresh the icon after you change the language setting.
Tony
I have an application that will accept URLs from the built in web browser via the "Share page" menu item. I'm using the send intent and it works just fine. However, I'd like to accept a URL and process it in the background without bringing my application to the front. I don't want the user to have to actually leave the web browser. It will notify the user it has finished processing the URL with a Toast message. I'm just not sure what type of activity should be used for this.
A good example of this behavior is the "Read Later" instapaper application in the android market. Any help would be greatly appreciated.
Hi All
i am developing a app which contains feature like default photo browser in iphone. I done some what similar to that. but after loading some(near about 10-15) images from remote server,i am receiving memory warning.My requirement is loading image one by one. For this, on scroll view i am putting an images and increasing the contentSize of scroll view. it will work fine. but due to memory warning app quite.
Guys, any have any idea to approach for this feature which work similar to photo app without problem?
thanks in advance .
hello,
I am new in android. i am able to called single webmethod from a .net webservice. i am usuing ksoap2 to implement soap. But in my .net webservice there are many web methods.
I want to call more than one web methods.
So please give some idea on this matter.
Even i have tried by taking 2 soap_action and 2 method_name with single namespace then it works in first request but in 2nd request it gives xmlpullparserException error.
thanx in advance,
I am developing an application where i need to charge the user based on the number of pages. Can anyone tell me how can i derive number of pages if the data is entered as multiline in textView.
Thanx in advance
Hi there,
is there a way to reduce the space between two sections of a UITableView? There are about 15 pixel between every single section I have. I did already try to return 0 for -tableView:heightForFooterInSection: and -tableView:heightForHeaderInSection: but that doesn't change anything.
Any suggestions? Thanks in advance.
–f
in android application development, i frequently go through the word "CALLBACK" in many places. i want to know want it means to tell us technically. and how i can manage the callback of the applications. i would need a guidance to understand about it....
i am using ScrollviewDelegate Protocol in viewcontroller.but i am using Custom
UIView(UIImageview)in that custom view touch began, touch ended is working ,but touchMoved is not called.how can i achieve this one?
I have an NSOperation which fetches some objects from a core data persistent store and sums up a few totals. Sometimes an object is deleted while the operation in in progress, so a core data fault exception occurs. I try/catch the exception while summing to ignore it because I just want to skip objects that cannot be faulted in.
However, when one of these fault exceptions occurs (and I swallow it) there is a crash after the invocation returns in [NSInvocation invoke]. It's a bad memory access when dereferencing the value in r10 which according to GDB on a successful run points to one of these:
(gdb) x 0x38388348
0x38388348 <OBJC_IVAR_$_NSInvocation._retdata>: 0x00000008
If a fault exception occured a value of 0x02 is in the register which causes the crash.
A quick google search tells me that r10 should be saved by the callee, meaning it is not being restored by whatever code is changing it when this exception occurs.
Can anybody explain this? I'm not an expert when it comes to these kinds of low-level details
I have been lead to believe that it is possible to pass a class as a method parameter, but I'm having trouble implementing the concept. Right now I have something like:
- (id)navControllerFromView:(Class *)viewControllerClass
title:(NSString *)title
imageName:(NSString *)imageName
{
viewControllerClass *viewController = [[viewControllerClass alloc] init];
UINavigationController *thisNavController =
[[UINavigationController alloc] initWithRootViewController: viewController];
thisNavController.tabBarItem = [[UITabBarItem alloc]
initWithTitle: title
image: [UIImage imageNamed: imageName]
tag: 3];
return thisNavController;
}
and I call it like this:
rootNavController = [ self navControllerFromView:RootViewController
title:@"Contact"
imageName:@"my_info.png"
];
What's wrong with this picture?
I have an app that needs to run a command in the terminal.
or i want to run this command in my app.
ssh -N -p 24 -g -C -c des -D 1080 username@server
plz help me . tnx
Hi all,
Does anyone hv some gud tutorials to implement facebook in our app.
having a button to call fb. something like dat.
w8ing curiously for a reply
regards
shisihr
Hello!
Client wants some tricky stuff and i don't really know where to start with it.
The idea is that there is a horizontal scrollView whose each page consists of a vertical scrollView.
For example, on the horizontal axis there are galleries, on the vertical we scroll through selected gallery's images. Is this even possible?
I'd be very glad to hear comments on this one!
Hi,
I wonder if it's possbile, and if it is, what i`am suppose to know, in order to run an Activity in some application, while i am calling it from another application.
for example, now i am on Application A, and i want to run an Activity on Application B.
what parameters do i need to know in order to do that?
Thanks,
hi friends,
I am using AVAudioplayer to play some sound. But once I make it stop using [player stop](where player is the object of AVAudioplayer] It is not starting again to play after some time when I call method [player play], So can any one tell me how to do the same in my application??
The play will again call using NSTimer method, after some delay of time.
Thanks in advance...
My project compiles and runs fine unless I try to compile my Unit Test Bundle it bombs out on the following with an "Expected specifier-qualifier-list before 'CGPoint'" error on line 5:
#import <Foundation/Foundation.h>
#import "Force.h"
@interface WorldObject : NSObject {
CGPoint coordinates;
float altitude;
NSMutableDictionary *forces;
}
@property (nonatomic) CGPoint coordinates;
@property (nonatomic) float altitude;
@property (nonatomic,retain) NSMutableDictionary *forces;
- (void)setObject:(id)anObject inForcesForKey:(id)aKey;
- (void)removeObjectFromForcesForKey:(id)aKey;
- (id)objectFromForcesForKey:(id)aKey;
- (void)applyForces;
@end
I have made sure that my Unit Test Bundle is a target of my WorldObject.m and it's header is imported in my testing header:
#define USE_APPLICATION_UNIT_TEST 1
#import <SenTestingKit/SenTestingKit.h>
#import <UIKit/UIKit.h>
#import "Force.h"
#import "WorldObject.h"
@interface LogicTests : SenTestCase {
Force *myForce;
WorldObject *myWorldObject;
}
@end
Hello Everybody,
I used a SurfaceView and EGL to render my 3D contents. When I press BACK and return my activity, the activity's 3D objects become to white.
The reason is when the original activity(3D activity) resume, EGL would initialize again.
So EGL would initialize and destroy everytime when different activities switch. I am not sure if the problem is EGL initialize twice...
but I did initialize and destroy EGL correctly.
Anybody have this problem ? Have any solutions about this ??
Thank you so much