小编Rah*_*ini的帖子

无法找到'NSObject'的接口声明,'GPXType'的超类

我已经就这个问题做了一些研究,但我还没有找到类似的东西.

我正在使用iOS GPX框架使用GPX文件在地图上绘制路径.我在我的项目中导入了iOS GPX.framework.但我遇到了一个问题.

请指导我,如果有人有任何建议......

在此输入图像描述

xcode objective-c gpx ios

9
推荐指数
2
解决办法
1万
查看次数

以编程方式显示Storyboard视图

我正在使用Storyboard,我正面临着错误,如下所示,我的代码已成功执行,但它们没有页面显示或模拟器中的操作仅在启动图像后显示黑屏.

ClsMainPageAppDelegate.h

#import <UIKit/UIKit.h>

@interface ClsMainPageAppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) UIWindow *window;
@end
Run Code Online (Sandbox Code Playgroud)

ClsMainPageAppDelegate.m

#import "ClsMainPageAppDelegate.h"
#import "ClsMainPageViewController.h"
#import "ClsTermsandConditionViewController.h"

@implementation ClsMainPageAppDelegate

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
// Override point for customization after application launch.


NSUserDefaults *fetchDefaults = [NSUserDefaults standardUserDefaults];
int message = [fetchDefaults integerForKey:@"checkvalue"];
NSLog(@"Message Hello : %i",message);

if(message == 1)
{

    UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"MainStoryboard" bundle:nil];
    ClsMainPageViewController *mvc = [storyboard instantiateViewControllerWithIdentifier:@"BeIinformedPage"];
    [(UINavigationController*)self.window.rootViewController pushViewController:mvc animated:NO];
    NSLog(@"Launched Home Page");


}
else
{
    UIStoryboard *storyboard = [UIStoryboard …
Run Code Online (Sandbox Code Playgroud)

iphone ios uistoryboard

6
推荐指数
1
解决办法
2551
查看次数

USB在mac OS上的oracle virtualbox中没有检测到

我的操作系统是窗口8,我在虚拟机中运行mac OS.我已经在oracle虚拟机上成功安装了Mac OS,但是当我使用我的Pen驱动器时,它在Mac OS中无法检测到.我为virtualbox扩展包4.2.16安装了USB设备的外部软件, 但我的问题没有解决.

请检查我的截图.请帮助我解决我的问题......

谢谢.

oracle VM virtualBox设置串口图像

我点击Add Filter form device选项并选择我的USB然后virtualbox自动检测此信息.然后我确定并运行mac OS.

oracle VM virtualBox设置USB映像

当我转到虚拟框菜单并单击设备 - > USB设备 - >金士顿数据旅行者G3 [0100]上的选项时,Mac Os启动.当我遇到那种错误.

请解决我的问题.

谢谢.

检测USB时出错.

windows macos usb virtualbox windows-8

6
推荐指数
1
解决办法
3万
查看次数

如何回放最后一次刷卡像Tinder

我正在开发一个iOS应用程序(使用Objective-C).

我正在使用MDCSwipeToChoose API来刷一个视图(比如&dislike).

我想在应用程序中添加一个按钮(最后一次滑动tinder一样).

objective-c ios

5
推荐指数
1
解决办法
1758
查看次数

如何隐藏或删除顶部的导航栏?

此代码成功执行,然后打开"条款和条件页面".但是1个问题我在页面顶部面对额外的一个导航栏显示.如何隐藏或删除页面顶部的导航栏?

ClsMainPageAppDelegate.m

#import "ClsMainPageAppDelegate.h"
#import "ClsTermsandConditionViewController.h"

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{

    UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"MainStoryboard" bundle:nil];
    ClsTermsandConditionViewController *ivc = [storyboard instantiateViewControllerWithIdentifier:@"termsandConditionControl"];
    UINavigationController *navigationController=[[UINavigationController alloc] initWithRootViewController:ivc];
    self.window.rootViewController=nil;
    self.window.rootViewController = navigationController;
    [self.window makeKeyAndVisible];

}
Run Code Online (Sandbox Code Playgroud)

iphone storyboard ios

2
推荐指数
1
解决办法
3847
查看次数

LinearLayout使用不带XML的java代码动态设置边框颜色

我已经就这个问题做了一些研究,但我还没有找到类似的东西.

首先我使用ShapeDrawable创建线性布局的边框然后我尝试在LinearLayout上设置背景颜色但是没有设置颜色然后我已经设置了ShapeDrawable的两行然后我设置了线性布局的背景颜色但问题出现在边框颜色.

这是我通过背景颜色和边框颜色的JSON获得的价值.

我想通过java代码动态设置该值的线性布局的背景颜色和边框颜色.

请指导我.

谢谢

LinearLayout linearToAdd = new LinearLayout(getActivity());
linearToAdd.setOrientation(VERTICAL);
float d = getActivity().getResources().getDisplayMetrics().density;

  linearToAdd.setBackgroundColor(Color.parseColor((String)(mPod.getBackground())));

    switch(parentType){
    case LINEAR_LAYOUT:
        LinearLayout.LayoutParams linearParams = new LinearLayout.LayoutParams((int)(mPod.getWidth()*d),(int)(mPod.getHeight()*d));
        Log.d(TAG,"LinLay, W,H,T,L: "+mPod.getWidth()+", "+mPod.getHeight()+", "+mPod.getLeft()+", "+mPod.getTop());
        linearParams.setMargins(mPod.getLeft(), mPod.getTop(), 0,0);            
        linearToAdd.setLayoutParams(linearParams);

               ShapeDrawable rectShapeDrawable1 = new ShapeDrawable();
               Paint paint1 = rectShapeDrawable1.getPaint();
        //     paint1.setColor(Color.rgb(0, 0, 0));
               paint1.setStyle(Paint.Style.STROKE);
               paint1.setStrokeWidth(3);

        //     linearToAdd.setBackgroundDrawable(rectShapeDrawable1);

               break;
    } 
Run Code Online (Sandbox Code Playgroud)

android android-layout

2
推荐指数
1
解决办法
3594
查看次数

如何更改ios中特定单词的颜色

我搜索任何特定的词,如"上帝".我想改变那个特定的文字颜色应该改变不同的颜色.我试着在谷歌搜索,但我发现特定的单词颜色从单词链接的开头到结尾的特定索引值变化,这就是我的问题无法解决的原因.

请帮助我并更新我的代码以更改特定的单词文本颜色,即您在图像中看到的框中的单词.

谢谢

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
     UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:UYLCellIdentifier forIndexPath:indexPath];
    [self configureCell:cell forRowAtIndexPath:indexPath];
     return cell;
}

- (void)configureCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath
{
    if ([cell isKindOfClass:[UYLTextCellSearch class]])
    {
         UYLTextCellSearch *textCell = (UYLTextCellSearch *)cell;

         DataBase *DBContentDetail = [_sourceData objectAtIndex:indexPath.row];

         textCell.lineLabel.text = [NSString stringWithFormat:@"%@",DBContentDetail.dbtext];
        [textCell.lineLabel sizeToFit];
    }
}
Run Code Online (Sandbox Code Playgroud)

如何更改ios中特定单词的颜色

objective-c uitableview ios

1
推荐指数
1
解决办法
1569
查看次数